(after-doctype-system-identifier-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


: (after-doctype-system-identifier-state)
( document n/f string ch/f -- document n'/f string )
{
{
[ dup "\t\n\f " member? ]
[ drop after-doctype-system-identifier-state ]
}
{ [ dup 62 = ] [ drop pick emit-doctype data-state ] }
{ [ dup f = ] [ drop doctype-eof ] }
[
"unexpected-character-after-doctype-system-identifier"
report-parse-error (bogus-doctype-state)
]
} cond ;