Changeset 118672 in webkit
- Timestamp:
- May 28, 2012, 3:23:41 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/html5lib/resources/entities02.dat (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/WebCore.gyp/WebCore.gyp (modified) (1 diff)
-
Source/WebCore/html/parser/create-html-entity-table (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r118667 r118672 1 2012-05-28 Peter Beverloo <peter@chromium.org> 2 3 Æ doesn't get rendered as U+00C6 4 https://bugs.webkit.org/show_bug.cgi?id=87465 5 6 Reviewed by Adam Barth. 7 8 Test that the (current) first alphabetical entity in the named entity 9 table (Æ, without a semi-colon) renders as expected. 10 11 * html5lib/resources/entities02.dat: 12 1 13 2012-05-28 Christophe Dumez <christophe.dumez@intel.com> 2 14 -
trunk/LayoutTests/html5lib/resources/entities02.dat
r62241 r118672 248 248 | <div> 249 249 | "ZZ&prod=23" 250 251 #data 252 <div>ZZÆ=</div> 253 #errors 254 #document 255 | <html> 256 | <head> 257 | <body> 258 | <div> 259 | "ZZÆ=" -
trunk/Source/WebCore/ChangeLog
r118670 r118672 1 2012-05-28 Peter Beverloo <peter@chromium.org> 2 3 Æ doesn't get rendered as U+00C6 4 https://bugs.webkit.org/show_bug.cgi?id=87465 5 6 Reviewed by Adam Barth. 7 8 The if-statement to check whether the first entry of a certain letter 9 already exists in the index used .get(). The very first alphabetical 10 entry is in position "0", which evaluates to false, causing the first 11 entry to be ignored. Instead, use a "x not in y" check here. 12 13 Also update WebCore.gyp to list the create-html-entity-table script as 14 an input for the action, to make sure the table will be recreated. 15 16 Test: html5lib/resources/entities02.dat 17 18 * WebCore.gyp/WebCore.gyp: 19 * html/parser/create-html-entity-table: 20 1 21 2012-05-28 Yury Semikhatsky <yurys@chromium.org> 2 22 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r118353 r118672 576 576 'action_name': 'HTMLEntityTable', 577 577 'inputs': [ 578 '../html/parser/create-html-entity-table', 578 579 '../html/parser/HTMLEntityNames.in', 579 580 ], -
trunk/Source/WebCore/html/parser/create-html-entity-table
r103246 r118672 125 125 for entry in entries: 126 126 letter = entry[ENTITY][0] 127 if not index.get(letter):127 if letter not in index: 128 128 index[letter] = offset 129 129 values = entry[VALUE].split(' ')
Note:
See TracChangeset
for help on using the changeset viewer.