Accesskey n skips to in-page navigation. Skip to the content start.
These tests check whether user agents handle character escapes as expected for HTML and XHTML documents. In what follows, 'HTML' means HTML4.01 or XHTML 1.0 served as text/html. XML means XHTML 1.0 or XHTML 1.1 served as application/xhtml+xml.
See the results below for user agents tested. This section summarizes the results of those tests.
All user agents produced characters as expected. Safari didn't display the supplementary character's glyph, but copy-paste did produce the right character.
For IE, Opera, and Chrome, it is important to specify a font for the text that includes the character in question if you wish to see the character rather than a box.
All user agents correctly displayed characters that were not in the encoding of the page.
All user agents displayed the euro sign in HTML if the escape used the Windows 1252 code point number rather than the correct Unicode code point number. This is contrary to the results expected as per the HTML 4.01 specification. None did so for pages served as XML.
These are results for the latest versions of each user agent tested. A green background (yes) means that the assertion associated with the test held true; red (no) means that it did not; orange (partially) means that it was only partially true. To view the assertion, click on the text in the left column.
Results are given for four types of document format: H4 (HTML 4.01), XH (XHTML 1.0 served as text/html), X (XHTML 1.0 served as XML), X11 (XHTML 1.1, served as XML). If results for all formats are the same, a single cell is shown in the results table for a given test/browser combination. XML tests were not run for IE.
| UA | IE | IE | Firefox | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|
| version | 8 | 7 | 3.5.1 | 9.64 | 4.0.1 | 2.0.172.37 |
| OS | XP | XP | XP | XP | XP | XP |
| date | 20090717 | 20090717 | 20090717 | 20090717 | 20090717 | 20090717 |
| hex ncr | yes | yes | yes | yes | yes | yes |
| decimal ncr | yes | yes | yes | yes | yes | yes |
| lower-case entity | yes | yes | yes | yes | yes | yes |
| upper-case entity | yes | yes | yes | yes | yes | yes |
| supplementary character | yes | yes | yes | yes | partially 1 | yes |
Notes:
| UA | IE | IE | Firefox | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|
| version | 8 | 7 | 3.5.1 | 9.64 | 4.0.1 | 2.0.172.37 |
| OS | XP | XP | XP | XP | XP | XP |
| date | 20090717 | 20090717 | 20090717 | 20090717 | 20090717 | 20090717 |
| hex ncr outside range of charset | yes | yes | yes | yes | yes | yes |
| decimal ncr outside range of charset | yes | yes | yes | yes | yes | yes |
| character entity outside range of charset | yes | yes | yes | yes | yes | yes |
| UA | IE | IE | Firefox | Opera | Safari | Chrome | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| version | 8 | 7 | 3.5.1 | 9.64 | 4.0.1 | 2.0.172.37 | ||||||||||||
| OS | XP | XP | XP | XP | XP | XP | ||||||||||||
| date | 20090717 | 20090717 | 20090717 | 20090717 | 20090717 | 20090717 | ||||||||||||
| format | H4, XH | H4, XH | H4 | XH | X | X11 | H4 | XH | X | X11 | H4 | XH | X | X11 | H4 | XH | X | X11 |
| hex ncr for C1 position of euro sign | no | no | no | no | yes | yes | no | no | yes | yes | no | no | yes | yes | no | no | yes | yes |
| decimal ncr for C1 position of euro sign | no | no | no | no | yes | yes | no | no | yes | yes | no | no | yes | yes | no | no | yes | yes |
Tell us what you think (English).
Content first published 2009-04-16. Last substantive update 2009-07-19 6:11 GMT. This version 2009-07-19 6:11 GMT
For the history of document changes, search for results-html-escapes in the i18n blog.
Copyright © 2009 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.