Handbook
Glossary
(script-data-end-tag-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
sequences
;
IN:
html5
:
(script-data-end-tag-name-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
"\t\n\f />"
member?
[
reach
appropriate-end-tag-token?
]
[
f
]
if
]
[
end-tag-name-delimiter
]
}
{
[
dup
ascii-alpha?
]
[
reach
push-end-tag-letter
script-data-end-tag-name-state
]
}
[
[
"</"
reach
emit-temporary-buffer-with
]
dip
(script-data-state)
]
}
cond
;