Safe Haskell | Safe-Infered |
---|
Text.XmlHtml.XML.Parse
- docFragment :: Encoding -> Parser Document
- whiteSpace :: Parser ()
- isNameStartChar :: Char -> Bool
- isNameChar :: Char -> Bool
- name :: Parser Text
- attrValue :: Parser Text
- systemLiteral :: Parser Text
- pubIdLiteral :: Parser Text
- isPubIdChar :: Char -> Bool
- charData :: Parser Node
- comment :: Parser (Maybe Node)
- processingInstruction :: Parser (Maybe Node)
- piTarget :: Parser ()
- cdata :: [Char] -> Parser a -> Parser Node
- cdSect :: Parser (Maybe Node)
- prolog :: Parser (Maybe DocType, [Node])
- xmlDecl :: Parser (Maybe Text)
- versionInfo :: Parser ()
- eq :: Parser ()
- misc :: Parser (Maybe Node)
- docTypeDecl :: Parser DocType
- data InternalDoctypeState
- = IDSStart
- | IDSScanning Int
- | IDSInQuote Int Char
- | IDSCommentS1 Int
- | IDSCommentS2 Int
- | IDSCommentS3 Int
- | IDSComment Int
- | IDSCommentD1 Int
- | IDSCommentE1 Int
- internalDoctype :: Parser InternalSubset
- sdDecl :: Parser ()
- element :: Parser Node
- emptyOrStartTag :: Parser (Text, [(Text, Text)], Bool)
- attribute :: Parser (Text, Text)
- endTag :: Text -> Parser ()
- content :: Parser [Node]
- charRef :: Parser Text
- reference :: Parser Text
- entityRef :: Parser Text
- externalID :: Parser ExternalID
- encodingDecl :: Parser Text
Documentation
docFragment :: Encoding -> Parser DocumentSource
This is my best guess as to the best rule for handling document fragments for processing. It is essentially modeled after document, but allowing multiple nodes.
isNameStartChar :: Char -> BoolSource
isNameChar :: Char -> BoolSource
isPubIdChar :: Char -> BoolSource
The requirement to not contain ]]> is for SGML compatibility. We deliberately choose to not enforce it. This makes the parser accept strictly more documents than a standards-compliant parser.
processingInstruction :: Parser (Maybe Node)Source
Always returns Nothing since there's no representation for a PI in the document tree.
docTypeDecl :: Parser DocTypeSource
Internal subset is parsed, but ignored since we don't have data types to store it.
data InternalDoctypeState Source
States for the DOCTYPE internal subset state machine.
internalDoctype :: Parser InternalSubsetSource
Internal DOCTYPE subset. We don't actually parse this; just scan through and look for the end, and store it in a block of text.