Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 9 years ago by christian.meixner@…

This is correct. Read documentation on this topic.

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

comment:2 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

comment:3 Changed 9 years ago by Rick Waldron

Component: unfiledattributes
Priority: undecidedlow
Note: See TracTickets for help on using tickets.