Bug 4948

Summary: Incorrect HTML entity error recovery doesn't match other browsers
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement CC: abarth, darin, ddkilzer, ian, mike
Priority: P3 Keywords: HasReduction, InRadar
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on: 6446, 32377    
Bug Blocks:    
Attachments:
Description Flags
test matrix none

Description Alexey Proskuryakov 2005-09-12 01:41:57 PDT
(from discussion in bug 4820)

Attached is a test matrix for invalid HTML entities with results for several browsers. Apparently, different 
browsers have little in common here, yet Safari matches none of them.

Perhaps, this should be improved.
Comment 1 Alexey Proskuryakov 2005-09-12 01:42:23 PDT
Created attachment 3875 [details]
test matrix
Comment 2 Eric Seidel (no email) 2005-12-28 01:35:59 PST
What a great table.  The code for all this is inside htmltokenizer.cpp.
Comment 3 Alexey Proskuryakov 2008-03-28 02:17:32 PDT
Bug 17689 has an example of this.
Comment 4 Alexey Proskuryakov 2008-03-28 02:17:57 PDT
<rdar://problem/5827553>
Comment 5 Sam Weinig 2008-07-28 17:52:38 PDT
This logic should be covered by http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#consume 
Comment 6 Adam Barth 2010-11-01 22:21:53 PDT
Our goal here is to match the HTML5 spec.  How does a WebKit nightly compare to Firefox 4 beta?
Comment 7 Adam Barth 2010-11-01 22:24:18 PDT
Looks like we match Firefox 4 on everything except:

&#4294967393;
&#18446744073709551713;
&#79228162514264337593543950433;
&#x100000061;
Comment 8 David Kilzer (:ddkilzer) 2014-11-10 12:52:08 PST
(In reply to comment #7)
> Looks like we match Firefox 4 on everything except:
> 
> &#4294967393;
> &#18446744073709551713;
> &#79228162514264337593543950433;
> &#x100000061;

The above test cases match "Firefox (Mac)" column, and WebKit matches Firefox 33.1 except for these four cases (which look like regressions in Firefox per the chart):

&#4294967393; (0x100000061)
&#18446744073709551713;
&#79228162514264337593543950433;
&#x100000061;

Marking as RESOLVED/FIXED.