Closed Bug 160967 Opened 22 years ago Closed 22 years ago

& does not resolv to &

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: miki, Assigned: rogerl)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1b) Gecko/20020721 BuildID: 2002072104 XHTML demand that & in URL will be represent by &amp; work ( but not XHTML ) <script>window.opener.location.replace('page.html?leaf=3&message=Z');</script> Dont work ( Correct XHTML ) <script>window.opener.location.replace('page.html?leaf=3&amp;message=Z');</script> Reproducible: Always Steps to Reproduce: 1.write the bad code in html file 2.click on it 3.see result Actual Results: drop the "message = Z variable" becouse its not translate &amp;
If you're serving up your XHTML as text/html, this bug is invalid. Entity replacement does _not_ happen in script in HTML. It _does_ happen in XHTML. In order to serve XHTML as text/html it must satisfy appendix C of the XHTML specification, and item C4 is: Use external style sheets if your style sheet uses < or & or ]]> or --. Use external scripts if your script uses < or & or ]]> or -- precisely because of this issue. Please reopen if you are serving your XHTML as application/xhtml+xml or as text/xml; in that case this bug is valid.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.