Handbook
Glossary
(doctype-state) ( document n/f string ch/f -- document n'/f string )
Vocabulary
html5
Inputs
document
an
object
n/f
an
object
string
an
object
ch/f
an
object
Outputs
document
an
object
n'/f
an
object
string
an
object
Definition
USING:
combinators
kernel
sequences
;
IN:
html5
:
(doctype-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
"\t\n\f "
member?
]
[
drop
before-doctype-name-state
]
}
{
[
dup
62
=
]
[
(before-doctype-name-state)
]
}
{
[
dup
f
=
]
[
drop
eof-in-doctype
pick
[
new-doctype-with-quirks
]
[
emit-doctype
]
[
emit-eof
]
tri
]
}
[
missing-whitespace-before-doctype-name
]
}
cond
;