Closed
Bug 268403
Opened 20 years ago
Closed 20 years ago
Ampersand (&) is not correctly interpreted in javascript
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: fs, Assigned: bugs)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
I don't know if it is a bug or it is a bad code... but. i have this
<script>
function vwokno(src, cislo) {
okno=window.open("galerie.php?src="+src+"&cislo="+cislo,
"a",'toolbar=0,location=0,scrollbars=0,width=800,height=625,resizable=1,top=20,left=20');
okno.focus();
}
</script>
important is this ...src="+src+"&cislo="+cislo..., because i am used to
write by xhtml standart i wrote & amp ; ...in IE it is running but in firefox not...
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Updated•20 years ago
|
Summary: amperesand (&) is not correctly interpreted in javascript → Ampersand (&) is not correctly interpreted in javascript
Updated•20 years ago
|
Component: Web Site → General
Comment 1•20 years ago
|
||
the parameter to window.open is *not* xhtml, just a string, so it should be just '&'.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•