(doctype-state) ( document n/f string ch/f -- document n'/f string )


Vocabulary
html5

Inputs
documentan object
n/fan object
stringan object
ch/fan object


Outputs
documentan object
n'/fan object
stringan object


Definition


: (doctype-state)
( document n/f string ch/f -- document n'/f string )
{
{
[ dup "\t\n\f " member? ]
[ drop before-doctype-name-state ]
}
{ [ dup f = ] [ drop doctype-eof ] }
[
"missing-whitespace-before-doctype-name"
report-parse-error (before-doctype-name-state)
]
} cond ;