Handbook
Glossary
(end-tag-open-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
:
(end-tag-open-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
ascii-alpha?
]
[
reach
new-end-tag
(tag-name-state)
]
}
{
[
dup
62
=
]
[
missing-end-tag-name
]
}
{
[
dup
f
=
]
[
eof-before-tag-name
]
}
[
invalid-first-character-of-tag-name
]
}
cond
;