table-end-tag ( document obj -- document )


Vocabulary
html5

Inputs
documentan object
objan object


Outputs
documentan object


Definition


:: table-end-tag ( document obj -- document )
obj name>> :> name name "table" =
[ document "table" close-table-element ] [
name { "tbody" "thead" "tfoot" "tr" "colgroup" } member?
[
document name
{ "html" "table" "template" } element-in-scope?
[ document name close-table-element ] when
] [
name
{ "body" "caption" "col" "html" "td" "th" } member?
[ document obj foster-body-token drop ] unless
] if
] if document ;