&AElig doesn't get rendered as U+00C6
authorpeter@chromium.org <peter@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 May 2012 10:23:41 +0000 (10:23 +0000)
committerpeter@chromium.org <peter@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 May 2012 10:23:41 +0000 (10:23 +0000)
commitc8c257bae483586227b668a4b7142b3044ceeee0
tree6db831f3f18ae71ef4dab86b44a99c5283a52533
parentd10ad0389ac41b05040472a917acba87de12582a
&AElig doesn't get rendered as U+00C6
https://bugs.webkit.org/show_bug.cgi?id=87465

Reviewed by Adam Barth.

Source/WebCore:

The if-statement to check whether the first entry of a certain letter
already exists in the index used .get(). The very first alphabetical
entry is in position "0", which evaluates to false, causing the first
entry to be ignored. Instead, use a "x not in y" check here.

Also update WebCore.gyp to list the create-html-entity-table script as
an input for the action, to make sure the table will be recreated.

Test: html5lib/resources/entities02.dat

* WebCore.gyp/WebCore.gyp:
* html/parser/create-html-entity-table:

LayoutTests:

Test that the (current) first alphabetical entity in the named entity
table (&AElig, without a semi-colon) renders as expected.

* html5lib/resources/entities02.dat:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/html5lib/resources/entities02.dat
Source/WebCore/ChangeLog
Source/WebCore/WebCore.gyp/WebCore.gyp
Source/WebCore/html/parser/create-html-entity-table