Skip to main content

Bug Tracker

Side navigation

#7249 closed bug (invalid)

Opened October 19, 2010 07:39AM UTC

Closed October 19, 2010 06:40PM UTC

Last modified January 31, 2011 04:56PM UTC

XML Element .attr() method not working.

Reported by: Danie Bruwer <danie.bruwer@gmail.com> Owned by:
Priority: low Milestone: 1.5
Component: attributes Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

<xml id="test" src="test.php" />

<script type="text/javascript">

$(document).ready(function() {

alert($("#test").attr("src")); alert(document.getElementById("test").getAttribute("src"));

});

</script>

Attachments (0)
Change History (3)

Changed October 19, 2010 08:10AM UTC by Danie Bruwer <danie.bruwer@gmail.com> comment:1

Its only in IE that its undefined.

http://jsfiddle.net/7r5X9/

Changed October 19, 2010 06:40PM UTC by snover comment:2

resolution: → invalid
status: newclosed

Thanks for the report, but this is not a jQuery bug. IE does not support custom elements in HTML without explicit hacks to add support through calls to document.createElement.

Changed January 31, 2011 04:56PM UTC by rwaldron comment:3

component: unfiledattributes
priority: undecidedlow