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

Commit74f14b6

Browse files
author
Edward Z. Yang ext:(%22)
committed
Add test and PHP impl for r3206 "make '<' in unquoted attribute values non-conforming.
1 parent3f72b28 commit74f14b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎library/HTML5/Tokenizer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,10 +1026,11 @@ public function parse() {
10261026
}else {
10271027
/* U+0022 QUOTATION MARK (")
10281028
U+0027 APOSTROPHE (')
1029+
U+003C LESS-THAN SIGN (<)
10291030
U+003D EQUALS SIGN (=)
10301031
Parse error. Treat it as per the "anything else"
10311032
entry below. */
1032-
if($char ==='"' ||$char ==="'" ||$char ==='=') {
1033+
if($char ==='"' ||$char ==="'" ||$char ==='=' ||$char =='<') {
10331034
$this->emitToken(array(
10341035
'type' =>self::PARSEERROR,
10351036
'data' =>'unexpected-character-in-unquoted-attribute-value'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp