Copyright | (c) 2020 Sam May |
---|---|
License | MPL-2.0 |
Maintainer | ag.eitilt@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Synopsis
- data ParseError
- = AbruptTemplateFragment
- | AbruptClosingOfEmptyComment
- | AbruptDoctypePublicIdentifier
- | AbruptDoctypeSystemIdentifier
- | AbsenceOfDigitsInNumericCharacterReference
- | BREndTag
- | CDataInHtmlContent
- | CharacterReferenceOutsideUnicodeRange Natural
- | ControlCharacterInInputStream
- | ControlCharacterReference
- | DuplicateAttribute BasicAttribute
- | DuplicateSingletonElement ElementParams
- | EndTagWithAttributes
- | EndTagWithTrailingSolidus
- | EOFBeforeTagName
- | EOFInCData
- | EOFInComment
- | EOFInDoctype
- | EOFInScriptHtmlCommentLikeText
- | EOFInTag
- | EOFInTemplate
- | EOFInText
- | FramesetInBody ElementParams
- | IncompletelyClosedFormattingElement
- | IncorrectlyClosedComment
- | IncorrectlyOpenedComment
- | InvalidByteSequence ShortByteString
- | InvalidCharacterSequenceAfterDoctypeName
- | InvalidFirstCharacterOfTagName
- | LegacyDoctype
- | MalformedTableStructure ElementParams
- | MissingAttributeValue
- | MissingDoctype
- | MissingDoctypeName
- | MissingDoctypePublicIdentifier
- | MissingDoctypeSystemIdentifier
- | MissingEndTagName
- | MissingQuoteBeforeDoctypePublicIdentifier
- | MissingQuoteBeforeDoctypeSystemIdentifier
- | MissingSemicolonAfterCharacterReference
- | MissingWhitespaceAfterDoctypePublicKeyword
- | MissingWhitespaceAfterDoctypeSystemKeyword
- | MissingWhitespaceBeforeDoctypeName
- | MissingWhitespaceBetweenAttributes
- | MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers
- | NestedComment
- | NestedElementForAdoptionAgency
- | NestedNonRecursiveElement
- | NestedSingletonElement
- | NoncharacterCharacterReference Char
- | NoncharacterInInputStream
- | NonVoidHtmlElementStartTagWithTrailingSolidus
- | NullCharacterReference
- | ObsoleteTagName Text
- | OverlappingFormattingElements
- | OverlappingHeaderElements
- | OverlappingInputElements
- | SurrogateCharacterReference Char
- | SurrogateInInputStream
- | UnexpectedCharacterAfterDoctypeSystemIdentifier Char
- | UnexpectedCharacterInAttributeName
- | UnexpectedCharacterInUnquotedAttributeValue
- | UnexpectedContentAfterBody
- | UnexpectedDescendantElement ElementParams
- | UnexpectedDoctype DocumentTypeParams
- | UnexpectedElementInTableStructure
- | UnexpectedElementWithImpliedEndTag
- | UnexpectedEqualsSignBeforeAttributeName
- | UnexpectedEndColInColumnGroup
- | UnexpectedEndOfBody
- | UnexpectedEndTag ElementParams
- | UnexpectedFormattingElementOutOfScope
- | UnexpectedHtmlElementInForeignContent
- | UnexpectedMetadataOutsideOfHead
- | UnexpectedNodeAfterFrameset
- | UnexpectedNodeInFrameset
- | UnexpectedNodeInHeadNoscript
- | UnexpectedNodeInTableStructure
- | UnexpectedNullCharacter
- | UnexpectedQuestionMarkInsteadOfTagName
- | UnexpectedSolidusInTag
- | UnexpectedTableCellOutsideOfRow
- | UnexpectedTextInTableStructure
- | UnknownNamedCharacterReference
- | UnmatchedEndTag ElementParams
- | UnmatchedEndPTag
- | XmlnsAttribtuteWithMismatchedValue
Documentation
data ParseError Source #
HTML:
parse errors
(constructor names directly reflect the identifiers in the spec)
Indicators that something syntactically unexpected was found in an HTML file. Given the focus on recovery in the parse algorithm, these are more properly warnings than errors, but the name follows that in the specification.
This datatype consists of the union of the errors raised by any of the various stages of the algorithm; no distinction is made between an "encoding error" and a "tree-building error".
Several constructors wrap a payload which would otherwise be unrecoverable from the DOM, to enable richer error reporting.
Instances
Eq ParseError Source # | |
Defined in Web.Mangrove.Parse.Common.Error (==) :: ParseError -> ParseError -> Bool # (/=) :: ParseError -> ParseError -> Bool # | |
Read ParseError Source # | |
Defined in Web.Mangrove.Parse.Common.Error readsPrec :: Int -> ReadS ParseError # readList :: ReadS [ParseError] # readPrec :: ReadPrec ParseError # readListPrec :: ReadPrec [ParseError] # | |
Show ParseError Source # | |
Defined in Web.Mangrove.Parse.Common.Error showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS # |