Modify ↓
Ticket #6244 (closed bug: wontfix)
function attr
| Reported by: | rilinor | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | attributes | Version: | 1.4.2 |
| Keywords: | attr | Cc: | |
| Blocking: | Blocked by: |
Description
In IE this code returns 'undefined': alert($('test2', '<test1><test2 abc="123"></test2></test1>').attr('abc')); But this one returns '123': alert($('test2', '<p><test2 abc="123"></test2></p>').attr('abc'));
Is it a bug or a feature?
p.s. In firefox both of them return '123'
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Well, you're putting custom elements inside other custom elements - which isn't built correctly in Internet Explorer (it has trouble interpreting custom elements within that context). That is a universal problem with Internet Explorer and not something that we can readily fix.