|
@@ 3722-3734 (lines=13) @@
|
| 3719 |
|
/* If the stack of open elements does not have an element in table |
| 3720 |
|
scope with the same tag name as the token, this is a parse error. |
| 3721 |
|
Ignore the token. */ |
| 3722 |
|
if (!$this->elementInScope($token['name'], true)) { |
| 3723 |
|
// Ignore |
| 3724 |
|
|
| 3725 |
|
/* Otherwise: */ |
| 3726 |
|
} else { |
| 3727 |
|
/* Clear the stack back to a table body context. */ |
| 3728 |
|
$this->clearStackToTableContext($clear); |
| 3729 |
|
|
| 3730 |
|
/* Pop the current node from the stack of open elements. Switch |
| 3731 |
|
the insertion mode to "in table". */ |
| 3732 |
|
array_pop($this->stack); |
| 3733 |
|
$this->mode = self::IN_TABLE; |
| 3734 |
|
} |
| 3735 |
|
|
| 3736 |
|
/* A start tag whose tag name is one of: "caption", "col", "colgroup", |
| 3737 |
|
"tbody", "tfoot", "thead", or an end tag whose tag name is "table" */ |
|
@@ 3809-3822 (lines=14) @@
|
| 3806 |
|
/* If the stack of open elements does not have an element in table |
| 3807 |
|
scope with the same tag name as the token, this is a parse error. |
| 3808 |
|
Ignore the token. (innerHTML case) */ |
| 3809 |
|
if (!$this->elementInScope($token['name'], true)) { |
| 3810 |
|
// Ignore. |
| 3811 |
|
|
| 3812 |
|
/* Otherwise: */ |
| 3813 |
|
} else { |
| 3814 |
|
/* Clear the stack back to a table row context. */ |
| 3815 |
|
$this->clearStackToTableContext($clear); |
| 3816 |
|
|
| 3817 |
|
/* Pop the current node (which will be a tr element) from the |
| 3818 |
|
stack of open elements. Switch the insertion mode to "in table |
| 3819 |
|
body". */ |
| 3820 |
|
array_pop($this->stack); |
| 3821 |
|
$this->mode = self::IN_TBODY; |
| 3822 |
|
} |
| 3823 |
|
|
| 3824 |
|
/* A start tag whose tag name is one of: "caption", "col", "colgroup", |
| 3825 |
|
"tbody", "tfoot", "thead", "tr" or an end tag whose tag name is "table" */ |