mythz/jquip

append

jeyb opened this issue · 1 comments

jeyb commented

The append function doesn't take into account that setting innerHTML requires the content to be properly nested. Example:

$('table').append("<tr><td>oh no</td></tr>");

Would result in the <tr> being stripped. jQuery get's around this by setting wrappers for the innerHTML and then picking the correct element down the tree.

Here is how I'm doing it: https://github.com/jeyb/jquip/commit/5a8a4aebe9a6d6b7e239117b45c23af172cf96c4

Would you be interesting in such an addition?

jeyb commented

Resolved as of 829691c