HandsomeSoup-0.3: Work with HTML more easily in HXT

Safe HaskellSafe-Infered

Text.CSS.Parser

Synopsis

Documentation

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

selects a tag name, like h1

universalSelector :: ParsecT [Char] u Identity StringSource

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 SelectorSource

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

simpleSelectorNoTag :: ParsecT [Char] u Identity SelectorSource

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

simpleSelector :: ParsecT [Char] u Identity SelectorSource

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.