8000 Add test and PHP impl for r3206 "make '<' in unquoted attribute value… · DevMostafa/html5lib-php@74f14b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74f14b6

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

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)
0