John,

after investigation, it happens in IE only since IE copies the actual
DOM attributes as raw text when
using innerHTML. Here's a copy and paste test case:

<html>
<head>
<script src="../ui-code/trunk/jquery-1.2.6.js" type="text/javascript"
charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
                $('div').bind('click', function() {}); //Adds the expando
                $('textarea')[0].value = $('body')[0].innerHTML; //Write out the
innerHTML
        });
</script>
</head>
<body>

<div></div>
<textarea style='width: 600px; height: 600px;'></textarea>

</body>
</html>

I don't think there's a workaround unfortunately - any idea, other
than a regex?

On Nov 21, 5:42 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> > I'm having very weird expando issues:http://ui.jquery.com/bugs/ticket/3541
> > Does innerHTML really serialize all attributes and therefore copies
> > them?
>
> Serialize attributes, probably - but an expando isn't an attribute. Do
> you have a test case showing the copying occurring?
>
> --John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to