Skip to main content

Bug Tracker

Side navigation

#13946 closed bug (notabug)

Opened May 27, 2013 07:24AM UTC

Closed May 27, 2013 04:08PM UTC

$().html() method cannot process <? for table row

Reported by: yakeir@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:
Description

for example, there is one simple table.

<table id="demo">

<table>

then execute the following statement:

$('table#demo').append($('<tr>').html('<td>123 <? 456</td>'));

you will find that only 123 will be displayed in the new created table cell.

Attachments (0)
Change History (2)

Changed May 27, 2013 02:17PM UTC by anonymous comment:1

You will find that "<?" is not valid HTML. Use "<?" if you want to have "<?" as text in HTML just like you would have don, if you'd use plain HTML without any jS.

Changed May 27, 2013 04:08PM UTC by m_gol comment:2

resolution: → notabug
status: newclosed