Modify ↓
Ticket #9309 (closed bug: invalid)
attribute problem when create node
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$("<a>",{
innerHTML:"content"
})
will be <a innerHTML="content"></a>
not <a>content</a>
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.

This is correct. Read documentation on this topic.
You should use: $("<a/>",{html:"content"})