This project is archived and is in readonly mode.

#1243 ✓resolved
André Cruz

HTML5 tags and innerHTML issue

Reported by André Cruz | June 10th, 2011 @ 02:26 PM | in 1.4.0 (closed)

Hi guys,

In IE6 (and possibly IE7/IE8), altering the innerHTML property of an element that IS NOT on the DOM, will strip all the HTML5 tags.
Though, if the element is already on the DOM, the HTML5 tags are processed and not stripped.

Check out this fiddle

This breaks some functionality inside mootools, for instance the new Element("div", { html: "" }) does not work as expected in IE6.
A solution for this would somewhat create an hidden div, inject it into the body, modify it's innerHTML and grab it's elements.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket