table-cell-token ( document obj context -- document )


Vocabulary
html5

Inputs
documentan object
objan object
contextan object


Outputs
documentan object


Definition


:: 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 ;