# Entities expansion test page

The purpose of this table is to test how various browsers expands HTML entities in various edge cases in order to improve compatibility for HTML-Parser.

ent | with | without | dec | hex | hexx | ref
--- | --- | --- | --- | --- | --- | ---
&amp; | & | &&amp | && | && | &x | ref
&apos; | ' | &apos&aposapos | '' | '' | 'x | ref
&times; | × | ××times | ×× | ×× | ×x | ref
&euro; | € | &euro&euroeuro | €€ | €€ | €x | ref
&hearts; | ♥ | &hearts&heartshearts | ♥♥ | ♥♥ | ♥x | ref

overflow: 3= 33=! 333=ō 3333=അ 33333=舵 333333=񑘕 3333333=� 33333333=� 333333333=� 3333333333=� 33333333333=�

ref: &#xFx &#xFFx &#xFFFx &#xFFFFx &#xFFFFFx

## Results

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".

feature | do | don't
--- | --- | ---
expand &apos; | HTML-Parser >= 3.22, FireFox 1.5, Konqueror 3.4.3, Safari 2.0 | HTML-Parser <= 3.21, MSIE 7.0 beta 2
expand Latin-1 entities that are not terminated by semicolon | HTML-Parser, FireFox 1.5, Konqueror 3.4.3, MSIE 7.0 beta 2, Safari 2.0 |
expand prefix of Latin-1 entities in text content | HTML-Parser >= 3.40, Konqueror 3.4.3, MSIE 7.0 beta 2 | HTML-Parser <= 3.38, FireFox 1.5, Safari 2.0
expand Unicode entities that are not terminated by semicolon in text content | HTML-Parser <= 3.50, FireFox 1.5, Safari 2.0 | HTML-Parser >= 3.51, Konqueror 3.4.3, MSIE 7.0 beta 2
expand Unicode entities that are not terminated by semicolon in attributes | HTML-Parser <= 3.50 | HTML-Parser >= 3.51, FireFox 1.5, Konqueror 3.4.3, MSIE 7.0 beta 2, Safari 2.0
expand hex entities that are not terminated by semicolon in text content | HTML-Parser, FireFox 1.5, Konqueror 3.4.3, Safari 2.0 | MSIE 7.0 beta 2
expand hex entities that are not terminated by semicolon in attributes | HTML-Parser, FireFox 1.5, Konqueror 3.4.3, MSIE 7.0 beta 2, Safari 2.0 |