8000 Implement p-closing by xmp IE style, r3768. · jasonll/html5lib-php@8e27661 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e27661

Browse files
committed
Implement p-closing by xmp IE style, r3768.
1 parent 576eeef commit 8e27661

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

SPEC

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
3382
1+
3768
22

33
This is the last revision of the spec this library has been audited against.
44

library/HTML5/TreeBuilder.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,16 @@ public function emitToken($token, $mode = null) {
13211321

13221322
/* A start tag token whose tag name is "xmp" */
13231323
case 'xmp':
1324+
/* If the stack of open elements has a p element in
1325+
scope, then act as if an end tag with the tag name
1326+
"p" has been seen. */
1327+
if ($this->elementInScope('p')) {
1328+
$this->emitToken(array(
1329+
'name' => 'p',
1330+
'type' => HTML5_Tokenizer::ENDTAG
1331+
));
1332+
}
1333+
13241334
/* Reconstruct the active formatting elements, if any. */
13251335
$this->reconstructActiveFormattingElements();
13261336

0 commit comments

Comments
 (0)
0