GithubHelp home page GithubHelp logo

engine's Introduction

#Engine Engine is a powerful, lightweight utility for selecting document elements using Javascript and CSS selectors.

Read the docs for more details.

##Change log ###Version 2

  • CSS Level 4 Selectors!
    • :any-link
    • :local-link
    • :matches
    • :not
    • :nth-match
    • :nth-last-match
    • [attr="VaLuE" i]
  • Extension selectors
    • [attr!=value]
    • [.prop=value] (property selector)
    • [attr="^va.{2}e$" r] (regular expression)
    • [attr={0}] (reference)
    • :{0} / :{wow} (ad hoc pseudo selectors)
    • :contains (ability to specify case-insensitivity/regexp)
    • :has
    • :referenced-by
  • Complete code rewrite
    • Depends on querySelector and querySelectorAll, meaning it runs in IE8+ and other modern browsers
    • Dropped IE6-7 support
    • Dropped selector caching
    • The complete package weighs in at ~7KB minified (~3KB gzip)
    • More robust parser which closely follows the W3 CSS selector grammar
  • New API methods
    • engine.addFilter
    • engine.addTransformer
    • engine.anb
    • engine.getSelector
    • engine.translate
  • grunt.js script which allows modular builds
    • Devs can roll their own version without IE8 support or with only the selector support they need.
  • Documentation
  • Unit tests
  • Modified MIT/X11 license

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.