gecko-dev/servo/components/selectors
Emilio Cobos Álvarez 96a85ab8c6 Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam
The changes should be trivial.

The third_party changes are up for review in
https://github.com/servo/rust-cssparser/pull/277 (and of course I'll
land with a bump to 0.28 rather than the override after that gets r+'d).

The basic idea is that with this we have the actual start offset of the
rule, so we wouldn't include html comments or other invalid stuff we
discard during sanitization in bug 1680084. But that's a separate
change.

Differential Revision: https://phabricator.services.mozilla.com/D98677
2020-12-04 10:47:55 +00:00
..
attr.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
bloom.rs
build.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
builder.rs Bug 933562 - Implement complex :not(). r=jfkthame 2020-10-29 18:03:54 +00:00
Cargo.toml Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam 2020-12-04 10:47:55 +00:00
context.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
lib.rs Bug 933562 - Implement complex :not(). r=jfkthame 2020-10-29 18:03:54 +00:00
matching.rs Bug 1676513 - Fix lint error in matching.rs a=lint-fix 2020-11-17 14:48:54 +02:00
nth_index_cache.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
parser.rs Bug 1678881 - Avoid some allocations in selector serialization. r=xidorn 2020-11-22 01:02:22 +00:00
README.md
sink.rs
tree.rs Bug 1678881 - Avoid some allocations in selector serialization. r=xidorn 2020-11-22 01:02:22 +00:00
visitor.rs

rust-selectors

CSS Selectors library for Rust. Includes parsing and serilization of selectors, as well as matching against a generic tree of elements. Pseudo-elements and most pseudo-classes are generic as well.

Warning: breaking changes are made to this library fairly frequently (13 times in 2016, for example). However you can use this crate without updating it that often, old versions stay available on crates.io and Cargo will only automatically update to versions that are numbered as compatible.

To see how to use this library with your own tree representation, see Kuchikis src/select.rs. (Note however that Kuchiki is not always up to date with the latest rust-selectors version, so that code may need to be tweaked.) If you dont already have a tree data structure, consider using Kuchiki itself.