-
abarth@webkit.org authored
Reviewed by Eric Seidel. First cut at HTML5 entities https://bugs.webkit.org/show_bug.cgi?id=39649 Update the expected results to show the new passing tests. Yay! * html5lib/webkit-runner-expected-html5.txt: 2010-05-24 Adam Barth <abarth@webkit.org> Reviewed by Eric Seidel. First cut at HTML5 entities https://bugs.webkit.org/show_bug.cgi?id=39649 There's still a bunch more work to do to get our entity parsing fully up to spec. This patch contains the bulk of the implementation however. The basics are covered by the existing html5lib tests. I'll add more detailed tests in a followup patch. * html/HTML5Lexer.cpp: (WebCore::HTMLNames::legalEntityFor): (WebCore::HTMLNames::isHexDigit): (WebCore::HTMLNames::isAlphaNumeric): (WebCore::HTMLNames::uncomsumeCharacters): (WebCore::HTML5Lexer::consumeEntity): (WebCore::HTML5Lexer::nextToken): (WebCore::HTML5Lexer::haveBufferedCharacterToken): * html/HTML5Lexer.h: (WebCore::HTML5Lexer::): * html/HTML5Tokenizer.cpp: (WebCore::HTML5Tokenizer::write): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ed1f7c11