Modify ↓
Ticket #11620 (closed bug: wontfix)
Creating custom element with inline attributes broken in IE
| Reported by: | c0d3rg1rl | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$('<content456 />').attr('id', 'content456') works.
$('<content789 id="content789" />') fails.
Testcase "fail": http://jsfiddle.net/fuNth/
If "old school" document.createElement('content789') is used, it works with IE:
Testcase "old school": http://jsfiddle.net/fuNth/1/
Discussion in IRC-channel pointed to a possible bug in createDocumentFragment or similar.
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.

Creating "custom" elements in old IE is broken, which is why newer HTML5 elements must be specially created via shims. jQuery does some internal work to make it easy for manipulating HTML5 elements, but does not provide a mechanism for creating arbitrary elements in archiac browsers.