|
@@ 2964-2976 (lines=13) @@
|
| 2961 |
|
/* If the stack of open elements does not have an element in table |
| 2962 |
|
scope with the same tag name as the token, this is a parse error. |
| 2963 |
|
Ignore the token. */ |
| 2964 |
|
if(!$this->elementInScope($token['name'], true)) { |
| 2965 |
|
// Ignore |
| 2966 |
|
|
| 2967 |
|
/* Otherwise: */ |
| 2968 |
|
} else { |
| 2969 |
|
/* Clear the stack back to a table body context. */ |
| 2970 |
|
$this->clearStackToTableContext($clear); |
| 2971 |
|
|
| 2972 |
|
/* Pop the current node from the stack of open elements. Switch |
| 2973 |
|
the insertion mode to "in table". */ |
| 2974 |
|
array_pop($this->stack); |
| 2975 |
|
$this->mode = self::IN_TABLE; |
| 2976 |
|
} |
| 2977 |
|
|
| 2978 |
|
/* A start tag whose tag name is one of: "caption", "col", "colgroup", |
| 2979 |
|
"tbody", "tfoot", "thead", or an end tag whose tag name is "table" */ |
|
@@ 3041-3054 (lines=14) @@
|
| 3038 |
|
/* If the stack of open elements does not have an element in table |
| 3039 |
|
scope with the same tag name as the token, this is a parse error. |
| 3040 |
|
Ignore the token. (innerHTML case) */ |
| 3041 |
|
if(!$this->elementInScope($token['name'], true)) { |
| 3042 |
|
// Ignore. |
| 3043 |
|
|
| 3044 |
|
/* Otherwise: */ |
| 3045 |
|
} else { |
| 3046 |
|
/* Clear the stack back to a table row context. */ |
| 3047 |
|
$this->clearStackToTableContext($clear); |
| 3048 |
|
|
| 3049 |
|
/* Pop the current node (which will be a tr element) from the |
| 3050 |
|
stack of open elements. Switch the insertion mode to "in table |
| 3051 |
|
body". */ |
| 3052 |
|
array_pop($this->stack); |
| 3053 |
|
$this->mode = self::IN_TBODY; |
| 3054 |
|
} |
| 3055 |
|
|
| 3056 |
|
/* A start tag whose tag name is one of: "caption", "col", "colgroup", |
| 3057 |
|
"tbody", "tfoot", "thead", "tr" or an end tag whose tag name is "table" */ |