Handbook
Glossary
(after-doctype-public-identifier-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
:
(after-doctype-public-identifier-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
"\t\n\f "
member?
]
[
drop
between-doctype-public-and-system-identifiers-state
]
}
{
[
dup
62
=
]
[
drop
pick
emit-doctype
data-state
]
}
{
[
dup
f
=
]
[
drop
doctype-eof
]
}
{
[
dup
34
=
]
[
drop
"missing-whitespace-between-doctype-public-and-system-identifiers"
report-parse-error
pick
initialize-doctype-system-identifier
doctype-system-identifier-double-quoted-state
]
}
{
[
dup
39
=
]
[
drop
"missing-whitespace-between-doctype-public-and-system-identifiers"
report-parse-error
pick
initialize-doctype-system-identifier
doctype-system-identifier-single-quoted-state
]
}
[
"missing-quote-before-doctype-system-identifier"
report-parse-error
[
pick
force-quirks
]
dip
(bogus-doctype-state)
]
}
cond
;