Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Defines the HTML DOM types and functions.
Synopsis
- data DOM = DOM {}
- data DOMNode
- = DOMDocument { }
- | DOMDoctype { }
- | DOMFragment { }
- | DOMElement { }
- | DOMTemplate { }
- | DOMText {
- domTextID :: DOMID
- domTextParent :: DOMID
- domTextData :: BS
- | DOMComment { }
- data DOMAttr = DOMAttr {}
- data DOMType = DOMType {}
- data DOMQuirks
- data DOMPos = DOMPos {}
- type DOMID = Int
- type DOMMap = IntMap DOMNode
- domAttrMake :: BS -> BS -> DOMAttr
- domDefaultDocument :: DOMNode
- domDefaultDoctype :: DOMNode
- domDefaultFragment :: DOMNode
- domDefaultElement :: DOMNode
- domDefaultTemplate :: DOMNode
- domDefaultText :: DOMNode
- domDefaultComment :: DOMNode
- domDefaultType :: DOMType
- domMakeTypeHTML :: BS -> DOMType
- domMakeTypeMathML :: BS -> DOMType
- domMakeTypeSVG :: BS -> DOMType
- domPos :: DOMID -> DOMPos
- domNull :: DOMID
- domRoot :: DOMID
- domRootPos :: DOMPos
- domDocument :: DOM -> DOMNode
- domQuirksSet :: DOMQuirks -> DOM -> DOM
- domQuirksGet :: DOM -> DOMQuirks
- domNewID :: DOM -> DOMNode -> (DOM, DOMID)
- domGetNode :: DOM -> DOMID -> Maybe DOMNode
- domPutNode :: DOMID -> DOMNode -> DOM -> DOM
- domInsert :: DOMPos -> DOMID -> DOM -> DOM
- domInsertNew :: DOMPos -> DOMNode -> DOM -> (DOM, DOMID)
- domAppend :: DOMID -> DOMID -> DOM -> DOM
- domAppendNew :: DOMID -> DOMNode -> DOM -> DOM
- domElementHasAttr :: DOMNode -> BS -> Bool
- domElementFindAttr :: DOMNode -> BS -> Maybe DOMAttr
- domElementAttrValue :: DOMNode -> BS -> Maybe BS
- domAttrEq :: Seq DOMAttr -> Seq DOMAttr -> Bool
- domAttrMerge :: DOMID -> Seq DOMAttr -> DOM -> DOM
- domAttrSet :: Seq DOMAttr -> Set DOMAttr
- domMatch :: DOM -> DOMID -> DOMID -> Bool
- domLastChild :: DOM -> DOMID -> Maybe DOMID
- domMapID :: DOM -> [DOMID] -> [DOMNode]
- domFindParent :: DOM -> DOMID -> Maybe DOMID
- domSetParent :: DOMID -> DOMID -> DOM -> DOM
- domMapChild :: DOMID -> (Seq DOMID -> Seq DOMID) -> DOM -> DOM
- domRemoveChild :: DOMID -> DOMID -> DOM -> DOM
- domRemoveChildren :: DOMID -> DOM -> DOM
- domMove :: DOMID -> DOMID -> DOM -> DOM
- domMoveChildren :: DOMID -> DOMID -> DOM -> DOM
- domChildren :: DOM -> DOMID -> Seq DOMID
- domHasChild :: DOM -> DOMID -> DOMID -> Bool
- domNodeID :: DOMNode -> DOMID
- domNodeParent :: DOMNode -> DOMID
- domNodeIsHTML :: DOMNode -> Bool
- domNodeIsSVG :: DOMNode -> Bool
- domNodeIsMathML :: DOMNode -> Bool
- domNodeIsDocument :: DOMNode -> Bool
- domNodeIsFragment :: DOMNode -> Bool
- domNodeIsElement :: DOMNode -> Bool
- domNodeIsTemplate :: DOMNode -> Bool
- domNodeIsHtmlElement :: DOMNode -> Bool
- domNodeIsText :: DOMNode -> Bool
- domNodeElementName :: DOMNode -> BS
- domNodeElementNamespace :: DOMNode -> HTMLNamespace
- domNodeType :: DOMNode -> DOMType
- domTypesHTML :: [BS] -> [DOMType]
- domTypesMathML :: [BS] -> [DOMType]
- domTypesSVG :: [BS] -> [DOMType]
- domRender :: DOM -> BS
Documentation
DOM represents an HTML document while being parsed.
Node is the model type for an HTML document.
An HTML element attribute type.
Identifies the type of an element.
Indentifies the quirks mode.
Defines a position in the DOM.
DOMPos | |
|
domDefaultDocument :: DOMNode Source #
Defines a default document.
domDefaultDoctype :: DOMNode Source #
Defines a default document type.
domDefaultFragment :: DOMNode Source #
Defines a default document fragment.
domDefaultElement :: DOMNode Source #
Defines a default element.
domDefaultTemplate :: DOMNode Source #
Defines a default template.
domDefaultText :: DOMNode Source #
Defines a default text.
domDefaultComment :: DOMNode Source #
Defines a default comment.
domDefaultType :: DOMType Source #
Defines a default type.
domMakeTypeHTML :: BS -> DOMType Source #
Makes a new HTML element type.
domMakeTypeMathML :: BS -> DOMType Source #
Makes a new MathML element type.
domMakeTypeSVG :: BS -> DOMType Source #
Makes a new SVG element type.
domRootPos :: DOMPos Source #
Defines an appending position in a document node.
domDocument :: DOM -> DOMNode Source #
Gets the document node for a DOM.
domQuirksGet :: DOM -> DOMQuirks Source #
Gets the quirks mode for a document.
domAttrEq :: Seq DOMAttr -> Seq DOMAttr -> Bool Source #
Determine if two sequences of attributes are equivalent.
domAttrSet :: Seq DOMAttr -> Set DOMAttr Source #
Converta an attribute sequence to an attribute set in order to be insensitive to order.
domMapChild :: DOMID -> (Seq DOMID -> Seq DOMID) -> DOM -> DOM Source #
Maps a function over children of a node.
domMoveChildren :: DOMID -> DOMID -> DOM -> DOM Source #
Moves the children of a node to another node.
domNodeParent :: DOMNode -> DOMID Source #
Gets the parent for a node.
domNodeIsHTML :: DOMNode -> Bool Source #
Detmermines if a node is in the HTML namespace.
domNodeIsSVG :: DOMNode -> Bool Source #
Detmermines if a node is in the SVG namespace.
domNodeIsMathML :: DOMNode -> Bool Source #
Detmermines if a node is in the MathML namespace.
domNodeIsDocument :: DOMNode -> Bool Source #
Detmermines if a node is a document node.
domNodeIsFragment :: DOMNode -> Bool Source #
Detmermines if a node is a document fragment node.
domNodeIsElement :: DOMNode -> Bool Source #
Detmermines if a node is an element node.
domNodeIsTemplate :: DOMNode -> Bool Source #
Detmermines if a node is a template node.
domNodeIsHtmlElement :: DOMNode -> Bool Source #
Detmermines if a node is an HTML element node.
domNodeIsText :: DOMNode -> Bool Source #
Detmermines if a node is a text node.
domNodeElementName :: DOMNode -> BS Source #
Gets the name for an element node.
domNodeElementNamespace :: DOMNode -> HTMLNamespace Source #
Gets the name for an element node.
domNodeType :: DOMNode -> DOMType Source #
Gets the type for an element node.
domTypesHTML :: [BS] -> [DOMType] Source #
Gets a list of HTML types for element names.
domTypesMathML :: [BS] -> [DOMType] Source #
Gets a list of MathML types for element names.
domTypesSVG :: [BS] -> [DOMType] Source #
Gets a list of SVG types for element names.