Closed Bug 268403 Opened 20 years ago Closed 20 years ago

Ampersand (&) is not correctly interpreted in javascript

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
minor

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+"&amp;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+"&amp;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.
Summary: amperesand (&amp;) is not correctly interpreted in javascript → Ampersand (&amp;) is not correctly interpreted in javascript
Component: Web Site → General
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.