#256 bug
John-David Dalton

Bug in how Element.extend detects XML Nodes

Reported by John-David Dalton | July 30th, 2008 @ 09:38 PM

I found an issue with a patch we applied earlier in the way we detect xml nodes

    // Filter out XML nodes in IE.
    if (!(element.ownerDocument || element).body) return element;

This will cause a false positive when extending an element before document.body loads

for example:

new Element('div'); //would not be extended in IE

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

Tags