@@ 3380-3390 (lines=11) @@ | ||
3377 | $this->stack[0]->appendChild($comment); |
|
3378 | ||
3379 | /* An end tag with the tag name "html" */ |
|
3380 | } elseif($token['type'] === HTML5::ENDTAG && $token['name'] === 'html') { |
|
3381 | /* If the parser was originally created in order to handle the |
|
3382 | setting of an element's innerHTML attribute, this is a parse error; |
|
3383 | ignore the token. (The element will be an html element in this |
|
3384 | case.) (innerHTML case) */ |
|
3385 | ||
3386 | /* Otherwise, switch to the trailing end phase. */ |
|
3387 | $this->phase = self::END_PHASE; |
|
3388 | ||
3389 | /* Anything else */ |
|
3390 | } else { |
|
3391 | /* Parse error. Set the insertion mode to "in body" and reprocess |
|
3392 | the token. */ |
|
3393 | $this->mode = self::IN_BODY; |
|
@@ 3479-3485 (lines=7) @@ | ||
3476 | $this->insertComment($token['data']); |
|
3477 | ||
3478 | /* An end tag with the tag name "html" */ |
|
3479 | } elseif($token['name'] === 'html' && |
|
3480 | $token['type'] === HTML5::ENDTAG) { |
|
3481 | /* Switch to the trailing end phase. */ |
|
3482 | $this->phase = self::END_PHASE; |
|
3483 | ||
3484 | /* A start tag with the tag name "noframes" */ |
|
3485 | } elseif($token['name'] === 'noframes' && |
|
3486 | $token['type'] === HTML5::STARTTAG) { |
|
3487 | /* Process the token as if the insertion mode had been "in body". */ |
|
3488 | $this->inBody($token); |