Modify ↓
Ticket #9498 (closed bug: duplicate)
Element creation fails when both options map and string attributes are present.
| Reported by: | cowboy | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.next |
| Component: | manipulation | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I must be doing something wrong...
// This works
$('<span foo="bar"/>');
// This works
$('<span/>', {html: 'baz'});
// This dont works (error)
$('<span foo="bar"/>', {html: 'baz'});
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.

Fixed landed here: https://github.com/jquery/jquery/commit/ec829431feed29b393b1c22ca97e8af49f47e228