1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<html>
<body>
<h1>Entities expansion test page</h1>
<p>The purpose of this table is to test how various browsers expands
HTML entities in various edge cases in order to improve compatibility
for <a href="http://search.cpan.org/dist/HTML-Parser">HTML-Parser</a>.
<p>
<table border=1>
<tr><th>ent</th><th>with</th><th>without</th><th>dec</th><th>hex</th><th>hexx</th><th>ref</th></tr>
<tr><td>&amp;</td><td>&</td><td>&&amp</td><td>&&</td><td>&&</td><td>&x</td><td><a href="http://example.com?a=1&=2&amp=3">ref</a></td></tr>
<tr><td>&apos;</td><td>'</td><td>&apos&aposapos</td><td>''</td><td>''</td><td>'x</td><td><a href="http://example.com?a=1&apos=2&aposapos=3">ref</a></td></tr>
<tr><td>&times;</td><td>×</td><td>××times</td><td>××</td><td>××</td><td>×x</td><td><a href="http://example.com?a=1×=2×times=3">ref</a></td></tr>
<tr><td>&euro;</td><td>€</td><td>&euro&euroeuro</td><td>€€</td><td>€€</td><td>€x</td><td><a href="http://example.com?a=1&euro=2&euroeuro=3">ref</a></td></tr>
<tr><td>&hearts;</td><td>♥</td><td>&hearts&heartshearts</td><td>♥♥</td><td>♥♥</td><td>♥x</td><td><a href="http://example.com?a=1&heart=2&heartheart=3">ref</a></td></tr>
</table>
<p>
overflow:
3= 33=! 333=ō 3333=അ 33333=舵 333333=񑘕 3333333=� 33333333=� 333333333=� 3333333333=� 33333333333=�
<p>
ref: <a href="http://example.com?a=x">&#xFx</a> <a href="http://example.com?a=ÿx">&#xFFx</a> <a href="http://example.com?a=࿿x">&#xFFFx</a> <a href="http://example.com?a=x">&#xFFFFx</a> <a href="http://example.com?a=x">&#xFFFFFx</a>
<h2>Results</h2>
<p>This table records observations of how various browsers behave with
regards to expanding entities. The term "Latin-1 entities" means named
entities that map to characters in the 0 .. 255 range. The term
"Unicode entities" means named entities that are not "Latin-1
entities".
<p>
<table border=1>
<tr>
<th>feature</th>
<th>do</th>
<th>don't</th>
</tr>
<tr>
<td>expand &apos;</td>
<td>HTML-Parser >= 3.22, FireFox 1.5, Konqueror 3.4.3, Safari 2.0</td>
<td>HTML-Parser <= 3.21, MSIE 7.0 beta 2</td>
</tr>
<tr>
<td>expand Latin-1 entities that are not terminated by semicolon</td>
<td>HTML-Parser, FireFox 1.5, Konqueror 3.4.3, MSIE 7.0 beta 2, Safari 2.0</td>
<td> </td>
</tr>
<tr>
<td>expand prefix of Latin-1 entities in text content</td>
<td>HTML-Parser >= 3.40, Konqueror 3.4.3, MSIE 7.0 beta 2</td>
<td>HTML-Parser <= 3.38, FireFox 1.5, Safari 2.0</td>
</tr>
<tr>
<td>expand Unicode entities that are not terminated by semicolon in text content</td>
<td>HTML-Parser <= 3.50, FireFox 1.5, Safari 2.0</td>
<td>HTML-Parser >= 3.51, Konqueror 3.4.3, MSIE 7.0 beta 2</td>
</tr>
<tr>
<td>expand Unicode entities that are not terminated by semicolon in attributes</td>
<td>HTML-Parser <= 3.50</td>
<td>HTML-Parser >= 3.51, FireFox 1.5, Konqueror 3.4.3, MSIE 7.0 beta 2, Safari 2.0</td>
</tr>
<tr>
<td>expand hex entities that are not terminated by semicolon in text content</td>
<td>HTML-Parser, FireFox 1.5, Konqueror 3.4.3, Safari 2.0</td>
<td>MSIE 7.0 beta 2</td>
</tr>
<tr>
<td>expand hex entities that are not terminated by semicolon in attributes</td>
<td>HTML-Parser, FireFox 1.5, Konqueror 3.4.3, MSIE 7.0 beta 2, Safari 2.0</td>
<td> </td>
</tr>
</table>
</body>
</html>
|