(after-doctype-name-state) ( document n string ch -- document n' string )


Vocabulary
html5

Inputs
documentan object
nan object
stringan object
chan object


Outputs
documentan object
n'an object
stringan object


Definition


:: (after-doctype-name-state)
( document n string ch -- document n' string )
ch {
{
[ dup html-space? ]
[ drop document n string after-doctype-name-state ]
}
{
[ dup 62 = ]
[
drop document emit-doctype
document n string data-state
]
}
{ [ dup f = ] [ drop document n string doctype-eof ] }
[
drop document n 1 - string {
{
[ "PUBLIC" take-from-insensitive? ]
[ after-doctype-public-keyword-state ]
}
{
[ "SYSTEM" take-from-insensitive? ]
[ after-doctype-system-keyword-state ]
}
[
"invalid-character-sequence-after-doctype-name"
report-parse-error pick force-quirks
bogus-doctype-state
]
} cond
]
} cond ;