#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: | ||
Blocked by: | Blocking: |
Description
$("<a>",{
innerHTML:"content"
})
will be <a innerHTML="content"></a>
not <a>content</a>
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Yes, there is no .innerHTML()
method in jQuery.
comment:3 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Note: See
TracTickets for help on using
tickets.
This is correct. Read documentation on this topic.
You should use: $("<a/>",{html:"content"})