These are used by the engine to ensure the same nodes aren’t selected
multiple times.

What exactly is this affecting?  Are you using TinyMCE or something, and
trying to save the resultant HTML content?   If so, regex is your friend.

var _regex_jquery = new RegExp('jQuery\\d{6,}="\\d+"','g');
html = html.replace(_regex_jquery,'');

JK


From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of realfun
Sent: Tuesday, July 22, 2008 8:23 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] jQuery add additional attribute like "jQuery1216740106187"
to any operated node(IE only)

I just find out that every operated node by jQuery will be inserted a jQuery
value in IE.

So after a heavy use of jQuery, my page is fulfilled with jQueryxxxx tags:

Any idea why this is happening? How to avoid this ?
---------------------------
Windows Internet Explorer
---------------------------
<DIV style="BACKGROUND: #fdfdfd"><U>JavaScript语言</U>: <A href="http://www.
fayaa.com/code/view/50/">测试字体2</A></DIV>

<DIV class=source style="FONT-FAMILY: 'Consolas','Lucida Console','Courier
New','Bitstream Vera Sans
Mono','monospace','Fixedsys','Monaco','Verdana','Comic Sans MS','Microsoft
Yahei','Tahoma'; BACKGROUND-COLOR: #000000" jQuery1216740257000="2"><SPAN
class=lineno style="COLOR: #696969" jQuery1216740257000="227">01</SPAN>
<SPAN class=_k style="FONT-WEIGHT: bold; COLOR: #00ffff"
jQuery1216740257000="228">function</SPAN><SPAN class=_ style="COLOR:
#c0c0c0" jQuery1216740257000="229"> </SPAN><SPAN class=_nx style="COLOR:
#c0c0c0" jQuery1216740257000="230">show</SPAN><SPAN class=_p style="COLOR:
#c0c0c0" jQuery1216740257000="231">(</SPAN><SPAN class=_nx style="COLOR:
#c0c0c0" jQuery1216740257000="232">x</SPAN><SPAN class=_p style="COLOR:
#c0c0c0" jQuery1216740257000="233">)</SPAN><SPAN class=_ style="COLOR:
#c0c0c0" jQuery1216740257000="234"> </SPAN><SPAN class=_p style="COLOR:
#c0c0c0" jQuery1216740257000="235">{</SPAN><SPAN class=_ style="COLOR:
#c0c0c0" jQuery1216740257000="236"> </SPAN><SPAN class=_nb style="COLOR:
#c0c0c0" jQuery1216740257000="237">document</SPAN><SPAN class=_p
style="COLOR: #c0c0c0" jQuery1216740257000="238">.</SPAN><SPAN class=_nx
style="COLOR: #c0c0c0" jQuery1216740257000="239">getElementById</SPAN><SPAN
class=_p style="COLOR: #c0c0c0" jQuery1216740257000="240">(</SPAN><SPAN
class=_nx style="COLOR: #c0c0c0" jQuery1216740257000="241">x</SPAN><SPAN
class=_p style="COLOR: #c0c0c0" jQuery1216740257000="242">).</SPAN><SPAN
class=_nx style="COLOR: #c0c0c0" jQuery1216740257000="243">style</SPAN><SPAN
class=_p style="COLOR: #c0c0c0" jQuery1216740257000="244">.</SPAN><SPAN
class=_nx style="COLOR: #c0c0c0"
jQuery1216740257000="245">visibility</SPAN><SPAN class=_o style="COLOR:
#c0c0c0" jQuery1216740257000="246">=</SPAN><SPAN class=_s2 style="COLOR:
#00bbbb" jQuery1216740257000="247">"visible"</SPAN><SPAN class=_
style="COLOR: #c0c0c0" jQuery1…


-- 
代码发芽网: http://www.fayaa.com/code/ (无需插件在blog上贴语法高亮的代码,
百种语言,多种配色)
我的Blog: http://www.2maomao.com/blog 

Reply via email to