issue when saving html from chrome browser

5 views
Skip to first unread message

psi

unread,
Dec 2, 2010, 8:37:44 PM12/2/10
to Java2Script
i noticed that saving the generated web page, breaks it, in chrome
(but not firefox)

whats happening is that the launcher line;

<a class="alaa" title="Launch first.HelloWorld"
href="javascript:if(a='first.HelloWorld@bin/',r=[&quot;hello&quot;],window['ClazzLoader']!
=null)$w$(a,r);else{var
d=document,t='onreadystatechange',x=d.createElement('SCRIPT'),f=function()
{var s=this.readyState;if(s==null||s=='loaded'||s=='complete'){$w$
(a,r);}};x.src='j2slib/j2slib.z.js';(typeof x[t]=='undefined')?
x.onload=f:x[t]=f;d.getElementsByTagName('HEAD')
[0].appendChild(x);void(0);}"><span class="alaa-icon"></
span>first.HelloWorld</a>

gets saved as;

<a class="alaa" title="Launch first.HelloWorld"
href="javascript:if(a='first.HelloWorld@bin/',r=["hello"],window['ClazzLoader']!
=null)$w$(a,r);else{var
d=document,t='onreadystatechange',x=d.createElement('SCRIPT'),f=function()
{var s=this.readyState;if(s==null||s=='loaded'||s=='complete'){$w$
(a,r);}};x.src='j2slib/j2slib.z.js';(typeof x[t]=='undefined')?
x.onload=f:x[t]=f;d.getElementsByTagName('HEAD')
[0].appendChild(x);void(0);}"><span class="alaa-icon"></
span>first.HelloWorld</a>

ie. the &quot; entity's gets saved as " (double quote) by chrome, and
the line now is terminated early.

simon.

Reply all
Reply to author
Forward
0 new messages