8000 Add test for quirks mode handling of table when p is in scope. · html5lib/html5lib-php@1ccae06 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ccae06

Browse files
author
Edward Z. Yang ext:(%22)
committed
Add test for quirks mode handling of table when p is in scope.
1 parent 74f14b6 commit 1ccae06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/HTML5/TreeBuilder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,10 @@ public function emitToken($token, $mode = null) {
11091109

11101110
/* A start tag whose tag name is "table" */
11111111
case 'table':
1112-
/* If the stack of open elements has a p element in scope,
1113-
then act as if an end tag with the tag name p had been seen. */
1112+
/* If the Document is not set to quirks mode, and the
1113+
* stack of open elements has a p element in scope, then
1114+
* act as if an end tag with the tag name "p" had been
1115+
* seen. */
11141116
if($this->quirks_mode !== self::QUIRKS_MODE &&
11151117
$this->elementInScope('p')) {
11161118
$this->emitToken(array(

0 commit comments

Comments
 (0)
0