JSFiddle - React, Tailwind, and code Playground

by javadoug

HTML

This breaks in ie8 print preview. The issue is adding an attribute when creating an element like this $('<table attr="">') causes ie8 print renderer to output extra invalid markup <><div/>. Fix is to close tag $('<table attr=""></table>').

CSS

table {
    border: 1px solid red;
}

JavaScript

$('<table class="broken">').append('<tr>').append('<td>').html('hello, 1').appendTo('body');
$('<div>').html('goodbye').appendTo('body');