8000 Backed out changeset d66c7f27448b (as per spec revert) · html5lib/html5lib-php@80c4009 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80c4009

Browse files
author
Edward Z. Yang ext:(%22)
committed
Backed out changeset d66c7f27448b (as per spec revert)
1 parent 5aeccac commit 80c4009

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

library/HTML5/Tokenizer.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,16 +2229,6 @@ private function consumeCharacterReference($allowed = false, $inattr = false) {
22292229
/* If no match can be made, then this is a parse error.
22302230
No characters are consumed, and nothing is returned. */
22312231
if (!$codepoint) {
2232-
// XERROR: per r3146 this doesn't always result in a
2233-
// parse error
2234-
/* If the current state is not the character reference in
2235-
* attribute value state, or the U+0026 AMPERSAND character is
2236-
* not followed by one or more characters in the ranges U+0030
2237-
* DIGIT ZERO to U+0039 DIGIT NINE, U+0041 LATIN CAPITAL LETTER
2238-
* A to U+005A LATIN CAPITAL LETTER Z, and U+0061 LATIN SMALL
2239-
* LETTER A to U+007A LATIN SMALL LETTER Z, followed by a
2240-
* U+003D EQUALS SIGN character (=), then this is also a parse
2241-
* error. */
22422232
$this->emitToken(array(
22432233
'type' => self::PARSEERROR,
22442234
'data' => 'expected-named-entity'

0 commit comments

Comments
 (0)
0