Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13946 closed bug (notabug)

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

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:


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.

Change History (2)

comment:1 Changed 10 years ago by anonymous

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

comment:2 Changed 10 years ago by m_gol

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.