Closed
Bug 104016
Opened 24 years ago
Closed 24 years ago
hexadecimial numeric character references (&#xHHH;) are not supported by browser
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: hvv, Assigned: harishd)
References
()
Details
hexadecimial numeric character references (&#xHHH;) are not supported by browser (just ignored)!!! &#DDD; work fine of course. They need to be supported according to HTML spec.
I was shocked when I found that.
Comment 1•24 years ago
|
||
Reporter: Do you have a testcase for this?
Also, in future, please use the Bugzilla Helper for filing bugs:
http://www.mozilla.org/quality/help/bugzilla-helper.html
(among other things, it automagically adds your Build ID)
-> Normal
Severity: critical → normal
Comment 2•24 years ago
|
||
Hex, decimal, and named HTML entities work quite well in Mozilla. Here's a testcase:
http://www.htmlhelp.com/reference/html40/entities/
Worksforme in Build 2001100903, but this has been working for a long time.
Reporter, what build were you using?
| Reporter | ||
Comment 3•24 years ago
|
||
Sorry, I somewhat wrong. I use 0.9.2, the following html fragment:
<input value="a1">
DOES NOT SHOW "1" (0x31 is hex code of digit 1) in input field - only 'a'.
MS IE, lynx, links show "1" at the end of the input (i.e. input has string "a1" in it).
Comment 4•24 years ago
|
||
Marking WFM 2001100803 on Win2k.
Vlad: That build is abominably old.
Please try a more recent build and reopen this bug if it still occurs for you:
http://ftp.mozilla.org/pub/mozilla/nightly/latest/
(as always, be sure to delete your old Mozilla directory before installing the
new one)
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
this appears to work
data:text/html,�	

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
in 2001100903
i think my current generator is
--
javascript:var a=''; var b="<a href='data:text/html,"; var c="'>test</a>"; for
(i=0;i<256;i++) a+="&#x"+i.toString(16)+";";
document.write(b+a+c);document.write(b+a.replace(/&/g,'&')+c)--
I can try the same sort of thing for larger numbers, but getting this to work is
a wee bit of a pain...
Ok, replacing 256 w/ (2<<16) is a *bad* idea. eventually mozilla spent ~300mb of
ram and probably an hour thinking about it (Windows spent a lot of the interval
starving my irc client while trying to satisfy mozilla's memory needs).
If you're going to file a bug like this, please provide a testcase.
Severity: normal → critical
(collision...) verifying wfm, data:text/html,<input value="a1"> works
2001100903.
Severity: critical → normal
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•