Kitchen & Sink — Full Lexer Test

Double quoted
Single quoted
Unquoted attributes

Entity in URL Single quoted URL Unquoted URL

Named entities: & < > "

Decimal numeric: ABC

Hex numeric: ABC

Upper hex: DE

Bare ampersand: Tom & Jerry

Unknown entity: &unknown; stays raw

Missing semicolon: & without semicolon

Empty numeric: &#; and &#x;

Large codepoint: ϧ

RCDATA content: <not-a-tag> & entities work here
Mixed attribute styles

Self-closing voids:

Deep nesting

Text

Text

Text