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 comment:1
Changed October 19, 2010 06:40PM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
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 comment:3
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
Its only in IE that its undefined.
http://jsfiddle.net/7r5X9/