Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13024 closed bug (notabug)

Appending a table row beginning with a tab char doesn't work under IE7

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


When trying to append a table row directly to a table element, it works fine if the HTML describing the row does not begin with a tab char ("\t"), meaning : the row is displayed. If the HTML begins with a tab char, the row is not displayed.

Reason seems to be that in the 1st case, the row is appended to the tbody element of the table and in the 2nd case not. Ideally, to be consistent, it should work in both cases.

OS : Windows 7 Browser : IE 7 jQuery version : 1.8.2 jsFiddle : http://jsfiddle.net/mawrkus/5bkPF/9/

Does not happen under IE8+, FF 17, Chrome 23, Safari 5, Opera 12

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

This doesn't look like a bug to me. The tr elements should be appended to the tbody, and technically you're trying to append a text node to the tbody which isn't good either. The fact that some browsers allow a tr to be appended to the table element but really put it under the tbody isn't something I think we need to support cross browser.

Note: See TracTickets for help on using tickets.