Git Product home page Git Product logo

hcxselect's Introduction

hcxselect - A CSS selector engine for htmlcxx

hcxselect is a small CSS selector engine for htmlcxx. It parses CSS selector expressions and applies them to a set of trees of HTML nodes parsed via htmlcxx.

Usage

The "library" consists of a header and a source file and is currently meant to be directly included in other software, as it provides no installation options. Please be aware the flex is needed to generate code for the lexical scanner. However, this needs to be done only once, and the respective header file can be used directly.

Compliance

hcxselect aims to comply with the Selectors Level 3 specification http://www.w3.org/TR/selectors/. However, a couple of browser-specific selectors are not implemented, as they don't make sense here:

* pseudo-classes:
  :link, :visited, :hover, :active, :focus, :target, :lang,
  :enabled, :disabled, :checked, :indeterminate

* pseudo-elements:
  ::before, ::after

The following extra pseudo-classes are provided for convenience:

* :text matches text (i.e., non-text and non-comment node)
* :comment matches comment nodes

License

hcxselect licensed under 3-clause BSD license. However, please be aware that htmlcxx itself uses the GNU Lesser General Public License (LGPL) and uses tree.hh, which in turn is available under the GNU General Public License (GPL), version 2 or 3.

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.