Bug 87465 - &AElig doesn’t get rendered as U+00C6
Summary: &AElig doesn’t get rendered as U+00C6
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Peter Beverloo
URL: http://mathias.html5.org/tests/html/n...
Keywords:
Depends on: 74826
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-24 23:30 PDT by Mathias Bynens
Modified: 2012-05-28 04:09 PDT (History)
8 users (show)

See Also:


Attachments
Patch (3.80 KB, patch)
2012-05-25 07:23 PDT, Peter Beverloo
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-02 (624.21 KB, application/zip)
2012-05-25 07:51 PDT, WebKit Review Bot
no flags Details
Patch (4.40 KB, patch)
2012-05-25 08:01 PDT, Peter Beverloo
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Patch (3.46 KB, patch)
2012-05-28 03:11 PDT, Peter Beverloo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Bynens 2012-05-24 23:30:22 PDT
&Aelig doesn’t get rendered as U+00C6. Kinda weird, as the entry in Source/WebCore/html/parser/HTMLEntityNames.in looks alright: http://trac.webkit.org/browser/trunk/Source/WebCore/html/parser/HTMLEntityNames.in#L2

Minimal test case: data:text/html,foo%20%26AElig%20bar

Up-to-date tests for named character references: http://mathias.html5.org/tests/named-character-references/

Spec: http://whatwg.org/html/named-character-references.html
Comment 1 Mathias Bynens 2012-05-25 04:41:53 PDT
(In reply to comment #0)
> &Aelig doesn’t get rendered as U+00C6.

Sorry, that should have said `&AElig`, not `&Aelig` (which isn’t a named character reference at all).
Comment 2 Peter Beverloo 2012-05-25 07:23:18 PDT
Created attachment 144065 [details]
Patch
Comment 3 Peter Beverloo 2012-05-25 07:24:29 PDT
Adam, do the encoding artifacts in entity-table-first-alphabetic-entry-expected.txt matter? Alternatively I guess a reftest comparing &AElig to Æ (mind the semi-colon) would work here.
Comment 4 WebKit Review Bot 2012-05-25 07:51:18 PDT
Comment on attachment 144065 [details]
Patch

Attachment 144065 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12795537

New failing tests:
fast/parser/entity-table-first-alphabetic-entry.html
Comment 5 WebKit Review Bot 2012-05-25 07:51:33 PDT
Created attachment 144067 [details]
Archive of layout-test-results from ec2-cr-linux-02

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-02  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 6 Peter Beverloo 2012-05-25 08:01:25 PDT
Created attachment 144068 [details]
Patch
Comment 7 WebKit Review Bot 2012-05-25 08:09:10 PDT
Comment on attachment 144068 [details]
Patch

Attachment 144068 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12804502
Comment 8 Gustavo Noronha (kov) 2012-05-25 08:13:10 PDT
Comment on attachment 144068 [details]
Patch

Attachment 144068 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/12799555
Comment 9 Early Warning System Bot 2012-05-25 08:22:22 PDT
Comment on attachment 144068 [details]
Patch

Attachment 144068 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/12803501
Comment 10 Build Bot 2012-05-25 08:28:02 PDT
Comment on attachment 144068 [details]
Patch

Attachment 144068 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12793489
Comment 11 Early Warning System Bot 2012-05-25 08:34:38 PDT
Comment on attachment 144068 [details]
Patch

Attachment 144068 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/12801473
Comment 12 Gyuyoung Kim 2012-05-25 08:42:01 PDT
Comment on attachment 144068 [details]
Patch

Attachment 144068 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/12807476
Comment 13 Peter Beverloo 2012-05-25 08:47:30 PDT
Comment on attachment 144065 [details]
Patch

Ugh, empty lines aren't being appreciated :-). Let's stick with Patch 1 for now then. Any ideas on how to get the bots to regenerate the file?
Comment 14 Adam Barth 2012-05-25 16:00:32 PDT
Comment on attachment 144065 [details]
Patch

The code change looks fine.  Please consider adding the test to http://trac.webkit.org/browser/trunk/LayoutTests/html5lib/resources/entities02.dat instead.  Don't worry about the encoding problems.  That's the fault of the review tool, not of the code we're testing.
Comment 15 Peter Beverloo 2012-05-28 03:11:42 PDT
Created attachment 144317 [details]
Patch
Comment 16 Adam Barth 2012-05-28 03:12:44 PDT
Comment on attachment 144317 [details]
Patch

Looks great.  Thanks!
Comment 17 Peter Beverloo 2012-05-28 03:13:33 PDT
Comment on attachment 144317 [details]
Patch

Thanks!
Comment 18 WebKit Review Bot 2012-05-28 03:23:59 PDT
Comment on attachment 144317 [details]
Patch

Clearing flags on attachment: 144317

Committed r118672: <http://trac.webkit.org/changeset/118672>
Comment 19 WebKit Review Bot 2012-05-28 03:24:05 PDT
All reviewed patches have been landed.  Closing bug.
Comment 20 Chris Dumez 2012-05-28 03:59:32 PDT
This patch appears to have caused 2 failures on EFL and GTK ports:

Regressions: Unexpected text diff mismatch : (2)
  fast/tokenizer/entities-01.html = TEXT
  fast/tokenizer/entities-03.html = TEXT

The diff looks like:
--- /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/fast/tokenizer/entities-03-expected.txt
+++ /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/fast/tokenizer/entities-03-actual.txt
@@ -1,4 +1 @@
-FAIL:
-
-AElig (was: &AElig, expected: Æ (\uc6))
-
+PASS
Comment 21 Chris Dumez 2012-05-28 04:04:17 PDT
(In reply to comment #20)
> This patch appears to have caused 2 failures on EFL and GTK ports:
> 
> Regressions: Unexpected text diff mismatch : (2)
>   fast/tokenizer/entities-01.html = TEXT
>   fast/tokenizer/entities-03.html = TEXT
> 
> The diff looks like:
> --- /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/fast/tokenizer/entities-03-expected.txt
> +++ /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/fast/tokenizer/entities-03-actual.txt
> @@ -1,4 +1 @@
> -FAIL:
> -
> -AElig (was: &AElig, expected: Æ (\uc6))
> -
> +PASS

I think those tests just need new baselines now that the &Aelig bug was fixed.
Comment 22 Peter Beverloo 2012-05-28 04:06:25 PDT
(In reply to comment #20)
> This patch appears to have caused 2 failures on EFL and GTK ports:
> 
> Regressions: Unexpected text diff mismatch : (2)
>   fast/tokenizer/entities-01.html = TEXT
>   fast/tokenizer/entities-03.html = TEXT
> 
> The diff looks like:
> --- /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/fast/tokenizer/entities-03-expected.txt
> +++ /home/buildslave-1/webkit-buildslave/efl-linux-64-debug/build/layout-test-results/fast/tokenizer/entities-03-actual.txt
> @@ -1,4 +1 @@
> -FAIL:
> -
> -AElig (was: &AElig, expected: Æ (\uc6))
> -
> +PASS

Sorry for that! It seems like this patch actually fixed the bug, so a rebaseline of the test should be sufficient..
Comment 23 Chris Dumez 2012-05-28 04:09:01 PDT
Doing rebaseline in Bug 87648.