Warning:
This wiki has been archived and is now read-only.
ParseErrors
From HTML WG Wiki
Parse errors
An important design principle for HTML5 is to provide well-defined error handling and recovery. This page and its sibling pages are here to collect together the various behavioral differences in current parsing engines in creating a document tree from a text/html serialized document.
| Error | HTML5 | Gecko | iCab | KHTML | Presto | Trident | WebKit | |
| Null character | replace with Unicode replacement character | |||||||
| End tag with attributes | ? | |||||||
| tag open state with content model set to PCData | ||||||||
| U+003E GREATER-THAN SIGN (>) | ||||||||
| U+003F QUESTION MARK (?) | ||||||||
| Anything else | ||||||||
| closing tag open state | ||||||||
| U+003E GREATER-THAN SIGN (>) | ||||||||
| EOF | ||||||||
| Anything else | ||||||||
| tag name state | ||||||||
| EOF | ||||||||
| U+002F SOLIDUS (/) | ||||||||
| Anything else | ||||||||
| before attribute name state | ||||||||
| U+002F SOLIDUS (/) | ||||||||
| EOF | ||||||||
| Anything else | ||||||||
| attribute name state | ||||||||
| U+002F SOLIDUS (/) | ||||||||
| EOF | ||||||||
| Duplicate attribute name | ||||||||
| after attribute name state | ||||||||
| U+002F SOLIDUS (/) | ||||||||
| EOF | ||||||||
| before attribute value state | ||||||||
| EOF | ||||||||
| Attribute value (double-quoted) state | ||||||||
| EOF | ||||||||
| Attribute value (single-quoted) state | ||||||||
| EOF | ||||||||
| Attribute value (unquoted) state | ||||||||
| EOF | ||||||||
| Markup declaration open state | ||||||||
| EOF | ||||||||
See also
- ParseIssues: Parse issues
- Differences in DOM method return values
- Namespaces in text/html
- Quirksmode triggers and behaviors
- ThoughtExperimentInGracefulDegradation: Parsing unknown elements: a thought experiment in graceful degradation
- SerializationDependentProcessingDifferences: Serialization dependent processing differences