Handbook
Glossary
table-cell-token ( document obj context -- document )
Vocabulary
html5
Inputs
document
an
object
obj
an
object
context
an
object
Outputs
document
an
object
Definition
USING:
accessors
kernel
sequences
;
IN:
html5
::
table-cell-token
( document obj context -- document )
obj
tag?
[
obj
name>>
{
"caption"
"col"
"colgroup"
"tbody"
"td"
"tfoot"
"th"
"thead"
"tr"
}
member?
]
[
f
]
if
obj
end-tag?
[
obj
name>>
{
"table"
"tbody"
"thead"
"tfoot"
"tr"
"td"
"th"
}
member?
]
[
f
]
if
or
[
obj
end-tag?
[
document obj
name>>
{
"html"
"table"
"template"
}
element-in-scope?
]
[
t
]
if
[
document context
generate-implied-end-tags
document context
close-table-element
document obj
body-token
]
[
document
]
if
]
[
document obj
ordinary-body-token
]
if
;