Handbook
Glossary
(doctype-public-identifier-single-quoted-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
;
IN:
html5
:
(doctype-public-identifier-single-quoted-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
39
=
]
[
drop
after-doctype-public-identifier-state
]
}
{
[
dup
0
=
]
[
drop
unexpected-null-character
65533
pick
push-doctype-public-identifier
doctype-public-identifier-double-quoted-state
]
}
{
[
dup
62
=
]
[
drop
abrupt-doctype-public-identifier
pick
[
force-quirks
]
[
emit-doctype
]
bi
data-state
]
}
{
[
dup
f
=
]
[
drop
eof-in-doctype
pick
[
force-quirks
]
[
emit-doctype
]
[
emit-eof
]
tri
]
}
[
reach
push-doctype-public-identifier
doctype-public-identifier-single-quoted-state
]
}
cond
;