By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,478 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,478 IT Pros & Developers. It's quick & easy.

Opera is turning my "&lang=" into ?=

P: n/a
Hi all,

was wondering if anyone might have knowledge on this. am testing with
Opera 7.11.
essentially whenever i try to use the substring "&lang=" in any string
value in javascript, and try to print it out, the "&lang" gets
converted into some strange character.

i.e., just try:
alert ("heyhey&lang=blahblah");

and i'll get:
"heyhey*=blahblah" in the resulting alert.

this isn't a problem for IE and Netscape. is "&lang" a reserved word
of some kind in opera's implementation of javascript?

any help would be appreciated. thanks.

Genzo
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
an********@hotmail.com (Genzo) writes:
essentially whenever i try to use the substring "&lang=" in any string
value in javascript, and try to print it out, the "&lang" gets
converted into some strange character.


&lang is read as an HTML entity (improperly terminated, there should
be a semicolon after). Any instance of "ampersand word (semicolon)" is
parsed as an entity. To avoid that, you must escape the ampersand:
"&lang="
Here the entity "&" is correctly parsed as the code for an ampersand.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
Genzo wrote:
was wondering if anyone might have knowledge on this. am testing with
Opera 7.11.


Try 7.20, it's out already.

--
Seks, seksić, seksolatki... news:pl.soc.seks.moderowana
http://hyperreal.info { iWanToDie } WiNoNa ) (
http://szatanowskie-ladacznice.0-700.pl foReVeR( * )
Poznaj jej zwiewne kształty... http://www.opera.com 007
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.