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