purefn / cssselectors Goto Github PK
View Code? Open in Web Editor NEWProvides the ability to select elements in an XML document using CSS selectors.
Provides the ability to select elements in an XML document using CSS selectors.
Thanks for your lib. I love it and it's made my view tests much easier to write. It deserves to be on maven central :-)
I'd be great if you could upload your library to Sonatype OSS Maven Repository, so that it's sync to maven central (https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide). It look like a bit of work, but it's not that bad.
I think it's best if you manage the artifacts as the project creator, but in case it's not possible, another option is that I upload it as a third party lib (https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+The+Central+Repository).
Let me know what you think.
Currently, there are optimizations being done.
At least one optimization would be to determine if the selector contains is
just a simple id selector and use getElementById() if the element being
searched is the document root.
Another possibility is to do some indexing of the document before any
selectors are run on it so we can have more information about the document
a priori. Things like which elements have which classes and other common
attributes would be useful.
Also, currently nth-child and friends are slower than they need to be
because the index of an element is calculated during matching. It could
easily be calculated during iteration instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.