Handbook
Glossary
(after-doctype-name-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
modern.slices
sequences
;
IN:
html5
:
(after-doctype-name-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
"\t\n\f "
member?
]
[
drop
after-doctype-name-state
]
}
{
[
dup
62
=
]
[
drop
pick
emit-doctype
data-state
]
}
{
[
dup
f
=
]
[
eof-in-doctype
]
}
{
[
[
"PUBLIC"
take-from-insensitive?
]
dip
swap
]
[
drop
after-doctype-public-keyword-state
]
}
{
[
[
"SYSTEM"
take-from-insensitive?
]
dip
swap
]
[
drop
after-doctype-system-keyword-state
]
}
[
invalid-character-sequence-after-doctype-name
]
}
cond
;