Git Product home page Git Product logo

cssselectors's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cssselectors's Issues

Could you upload to Sonatype OSS Maven Repository?

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.

Performance optimizations

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.