471,082 Members | 735 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,082 software developers and data experts.

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

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
2 6088
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
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.

Similar topics

5 posts views Thread by Nimmi Srivastav | last post: by
6 posts views Thread by vigi98 | last post: by
6 posts views Thread by Java script Dude | last post: by
16 posts views Thread by J. C. Denton | last post: by
14 posts views Thread by Peter Mount | last post: by
1 post views Thread by Shock | last post: by
2 posts views Thread by eschl | last post: by
27 posts views Thread by sophia | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.