tagsoup-selection-0.1.0.1: Selecting subtrees from TagSoup's TagTrees using CSS selectors

Safe HaskellSafe
LanguageHaskell98

Text.CSS3.Selectors.Syntax

Description

Syntax of CSS3 selectors.

Synopsis

Documentation

data Specificity Source #

The specificity of a selector with its components decreasing in significance from left to right. The components in Specificity a b c denote

  • a: the number of ID selectors,
  • b: the number of class selectors, attribute selectors and pseudo-classes (not counting the :not pseudo-class itself), and
  • c: the number of type selectors and pseudo-elements

as described in http://www.w3.org/TR/selectors/#specificity.

Constructors

Specificity !Int !Int !Int 

specificity :: Selector -> Specificity Source #

Returns the specificity for a selector.