Side navigation
#9309 closed bug (invalid)
Opened May 17, 2011 06:55AM UTC
Closed May 17, 2011 01:53PM UTC
Last modified May 17, 2011 01:55PM UTC
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>
Attachments (0)
Change History (3)
Changed May 17, 2011 12:58PM UTC by comment:1
Changed May 17, 2011 01:53PM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
Yes, there is no .innerHTML()
method in jQuery.
Changed May 17, 2011 01:55PM UTC by comment:3
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
This is correct. Read documentation on this topic.
You should use:
$("<a/>",{html:"content"})