Skip to main content

Bug Tracker

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 christian.meixner@bippesbrandao.de comment:1

This is correct. Read documentation on this topic.

You should use:

$("<a/>",{html:"content"})

Changed May 17, 2011 01:53PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Yes, there is no .innerHTML() method in jQuery.

Changed May 17, 2011 01:55PM UTC by rwaldron comment:3

component: unfiledattributes
priority: undecidedlow