Bug Tracker

Modify

Ticket #9309 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by christian.meixner@…

This is correct. Read documentation on this topic.

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

comment:2 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

comment:3 Changed 2 years ago by rwaldron

  • Priority changed from undecided to low
  • Component changed from unfiled to attributes

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.