@@ -3377,6 +3377,9 @@ discard block |
||
3377 | 3377 | return self::PHRASING; |
3378 | 3378 | } |
3379 | 3379 | |
3380 | + /** |
|
3381 | + * @param string[] $elements |
|
3382 | + */ |
|
3380 | 3383 | private function clearStackToTableContext($elements) { |
3381 | 3384 | /* When the steps above require the UA to clear the stack back to a |
3382 | 3385 | table context, it means that the UA must, while the current node is not |
@@ -3539,6 +3542,11 @@ discard block |
||
3539 | 3542 | $this->content_model = HTML5_Tokenizer::RCDATA; |
3540 | 3543 | } |
3541 | 3544 | |
3545 | + /** |
|
3546 | + * @param string $key |
|
3547 | + * |
|
3548 | + * @return string |
|
3549 | + */ |
|
3542 | 3550 | private function getAttr($token, $key) { |
3543 | 3551 | if (!isset($token['attr'])) return false; |
3544 | 3552 | $ret = false; |