Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Text.Tamper.DOM.AttribList
- data NodeList t
- nodeList :: [Node t] -> NodeList t
- unNodeList :: NodeList t -> [Node t]
- singletonNodeList :: Node t -> NodeList t
- data ElementClosingStyle
- data Node t
- = Document (NodeList t)
- | Element { }
- | TextNode {
- textContent :: t
- | CDataSection {
- cdataContent :: t
- | Comment {
- commentText :: t
- | RawHtml {
- htmlContent :: t
- documentNode :: Ord t => Node t
- elementNode :: Ord t => t -> ElementClosingStyle -> Node t
- textNode :: t -> Node t
- cdataNode :: t -> Node t
- commentNode :: t -> Node t
- rawHtmlNode :: t -> Node t
- setAttr :: Ord t => t -> t -> Node t -> Node t
- getAttr :: Ord t => t -> Node t -> Maybe t
- getAttrDef :: Ord t => t -> t -> Node t -> t
- appendChildren :: NodeList t -> Node t -> Node t
- appendChild :: Node t -> Node t -> Node t
Documentation
module Text.Tamper.DOM.AttribList
A list of DOM nodes.
unNodeList :: NodeList t -> [Node t] Source
singletonNodeList :: Node t -> NodeList t Source
data ElementClosingStyle Source
SingletonElement | Always self-close |
ElaborateElement | Never self-close |
AutoClosingElement | Self-close if no content |
Document (NodeList t) | |
Element | |
| |
TextNode | |
| |
CDataSection | |
| |
Comment | |
| |
RawHtml | |
|
documentNode :: Ord t => Node t Source
elementNode :: Ord t => t -> ElementClosingStyle -> Node t Source
commentNode :: t -> Node t Source
rawHtmlNode :: t -> Node t Source
getAttrDef :: Ord t => t -> t -> Node t -> t Source
appendChildren :: NodeList t -> Node t -> Node t Source
appendChild :: Node t -> Node t -> Node t Source