Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#7249 closed bug (invalid)

XML Element .attr() method not working.

Reported by: Danie Bruwer <[email protected]…> 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>

Change History (3)

comment:1 Changed 12 years ago by Danie Bruwer <[email protected]…>

Its only in IE that its undefined.

http://jsfiddle.net/7r5X9/

comment:2 Changed 12 years ago by snover

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.

comment:3 Changed 12 years ago by Rick Waldron

Component: unfiledattributes
Priority: undecidedlow
Note: See TracTickets for help on using tickets.