Skip to main content

Bug Tracker

Side navigation

#14220 closed bug (notabug)

Opened August 06, 2013 05:44AM UTC

Closed August 06, 2013 12:56PM UTC

Last modified August 06, 2013 01:33PM UTC

html() method dropping <li> tags

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:

JS fiddle:

I have a template.

I create jQuery object out the string.

I html() the jQury object

The output html does not contain <li> tags.

Bug or feature?

Versions: tried on all versions available on jsfiddle:

Attachments (0)
Change History (2)

Changed August 06, 2013 12:56PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

.html() is equivalent to the DOM .innerHTML and doesn't include the element upon which the method/property is called. Ask for help on a forum.

Changed August 06, 2013 01:33PM UTC by anonymous comment:2

Thank you for clarification, makes perfect sense:

you should surround your markup with some dummy div