Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit8e27661

Browse files
committed
Implement p-closing by xmp IE style, r3768.
1 parent576eeef commit8e27661

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)

[8]ページ先頭

©2009-2025 Movatter.jp