HandsomeSoup-0.4.2: Work with HTML more easily in HXT

Safe HaskellSafe-Inferred
LanguageHaskell98

Text.CSS.Parser

Synopsis

Documentation

typeSelector :: ParsecT [Char] u Identity [Char] Source

selects a tag name, like h1

universalSelector :: ParsecT [Char] u Identity String Source

universal selector, selects *

pseudoSelector :: ParsecT [Char] u Identity [Char] Source

selects a pseudo-element or pseudo-class, like :link , :first-child etc.

classSelector :: ParsecT [Char] u Identity ([Char], [Char]) Source

class selector, selects .foo

idSelector :: ParsecT [Char] u Identity ([Char], [Char]) Source

id selector, selects #foo

attributeSelector :: ParsecT [Char] u Identity ([Char], [Char]) Source

selects attributes, like [id] (element must have id) or [id=foo] (element must have id foo).

secondarySelector :: ParsecT [Char] u Identity [([Char], [Char])] Source

selector for everything after the type except pseudoSelectores

simpleSelectorTag :: ParsecT [Char] u Identity Selector Source

selects a tagname followed by one or more secondary selectors example: a.foo , *#hello , h1 etc

simpleSelectorNoTag :: ParsecT [Char] u Identity Selector Source

selects one or more secondary selectors and automatically prepends the universal selector to them. example: .foo , #hello etc

simpleSelector :: ParsecT [Char] u Identity Selector Source

A simple selector is either a type selector or universal selector followed immediately by zero or more attribute selectors, ID selectors, or pseudo-classes, in any order.

selector :: ParsecT [Char] u Identity [[Selector]] Source

One or more simple selectors separated by combinators.