-
abarth@webkit.org authored
Reviewed by Eric Seidel. Handle edge cases in HTML5 entity parsing https://bugs.webkit.org/show_bug.cgi?id=39823 The HTML5 specification tells us to handle HTML entities in a somewhat complicated way. This patch attempts to correctly handle numeric entities. Some of this code is duplicated from HTMLTokenizer. * html/HTML5Lexer.cpp: (WebCore::HTMLNames::): (WebCore::HTMLNames::adjustEntity): (WebCore::HTMLNames::legalEntityFor): (WebCore::HTML5Lexer::consumeEntity): (WebCore::HTML5Lexer::processEntity): (WebCore::HTML5Lexer::nextToken): (WebCore::HTML5Lexer::emitCodePoint): * html/HTML5Lexer.h: 2010-05-28 Adam Barth <abarth@webkit.org> Reviewed by Eric Seidel. Handle edge cases in HTML5 entity parsing https://bugs.webkit.org/show_bug.cgi?id=39823 Tests a bunch of the edge cases of entity handling in the HTML5 specification. * html5lib/resources/entities01.dat: * html5lib/runner-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fc8e393e