Opened 10 years ago
Closed 10 years ago
#13946 closed bug (notabug)
$().html() method cannot process <? for table row
Reported by: | 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.
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Closing per http://bugs.jquery.com/ticket/13946#comment:1
Note: See
TracTickets for help on using
tickets.
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.