Changeset 908


Ignore:
Timestamp:
10/18/07 20:18:30 (12 years ago)
Author:
wymsy
Message:

ticket #1086. RegExps? to remove disabling of inline event handlers not working in FF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r905 r908  
    48454845   
    48464846  // remove disabling of inline event handle inside Xinha iframe 
    4847   html = html.replace(/(<[^>]*onclick=['"])if\(window\.top &amp;&amp; window\.top\.Xinha\)\{return false\}/gi,'$1'); 
    4848   html = html.replace(/(<[^>]*onmouseover=['"])if\(window\.top &amp;&amp; window\.top\.Xinha\)\{return false\}/gi,'$1'); 
    4849   html = html.replace(/(<[^>]*onmouseout=['"])if\(window\.top &amp;&amp; window\.top\.Xinha\)\{return false\}/gi,'$1'); 
    4850   html = html.replace(/(<[^>]*onmousedown=['"])if\(window\.top &amp;&amp; window\.top\.Xinha\)\{return false\}/gi,'$1'); 
    4851   html = html.replace(/(<[^>]*onmouseup=['"])if\(window\.top &amp;&amp; window\.top\.Xinha\)\{return false\}/gi,'$1'); 
     4847  html = html.replace(/(<[^>]*onclick=['"])if\(window\.top (&amp;&amp;|&&) window\.top\.Xinha\)\{return false\}/gi,'$1'); 
     4848  html = html.replace(/(<[^>]*onmouseover=['"])if\(window\.top (&amp;&amp;|&&) window\.top\.Xinha\)\{return false\}/gi,'$1'); 
     4849  html = html.replace(/(<[^>]*onmouseout=['"])if\(window\.top (&amp;&amp;|&&) window\.top\.Xinha\)\{return false\}/gi,'$1'); 
     4850  html = html.replace(/(<[^>]*onmousedown=['"])if\(window\.top (&amp;&amp;|&&) window\.top\.Xinha\)\{return false\}/gi,'$1'); 
     4851  html = html.replace(/(<[^>]*onmouseup=['"])if\(window\.top (&amp;&amp;|&&) window\.top\.Xinha\)\{return false\}/gi,'$1'); 
    48524852 
    48534853 
Note: See TracChangeset for help on using the changeset viewer.