[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-06-08 Thread ken
I hope this isn't too late.. I believe the "problem" lies in the fact that when you view source in IE, you get the *current* source. In FF you get the original, unmodified HTML document. However, if you browse the source via Firebug, or the WebDev toolbar's "view generated source" function, you w

[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-03-29 Thread Karl Rudd
Hmmm so how are the changes to either block being made? Is it via user interaction? Could you track the changes when they are made, that way you wouldn't need to compare the entire block each time. You could also try Jeffery's method and filter the HTML through a regular expression before compari

[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-03-29 Thread domi01
The code with a loop on all elements works fine. In fact my problem is the following : I have 2 trees of html : #block1 and #block2 I want to know if the 2 blocks are the same (same node names , same attributes, same attribute values, ...). The only way I found, is to compare the $('#block

[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-03-28 Thread Karl Rudd
One of the core team might be able to tell you why the attributes are added for IE, it's probably something to do with some fix for a bug/feature of IE. What are you trying do when you compare the HTML? If it's just a small block of code (say contained in a div with id="block") you could do the

[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-03-28 Thread domi01
The .removeData(elem) works if you have the HTML element with the jQueryxxx attribute. In my case I don't know those elements . I could make a loop on all the elements and calls the function in order to remove those tags. This process won't be efficient. In my case, the problem occurs on

[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-03-28 Thread Jeffrey Kretz
I ended up having to remove these by regular expression. Does anyone know of a better solution? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of domi01 Sent: Friday, March 28, 2008 5:36 AM To: jQuery (English) Subject: [jQuery] how remove the

[jQuery] Re: how remove the attributes added by jquery : jQuery1206707292281

2008-03-28 Thread Benjamin Sterling
Domi, I think the .removeData() method will work for you: http://docs.jquery.com/Release:jQuery_1.2.3 On Fri, Mar 28, 2008 at 8:36 AM, domi01 <[EMAIL PROTECTED]> wrote: > > Hello, > > After several calls to jquery, some attributes are added to my html. > For instance, before the jquery calls the