How to style unknown elements in IE
Two days ago I posted what I thought was just a little tip on the weblog of Sam Ruby. He was trying to style the new elements from HTML5 in Internet Explorer. Here at Xopus we have known for several years (since about 2002 or 2003) that you have to do document.createElement(elementName), which somehow lets the CSS engine know about that new element. But apparently we were the only ones who knew this. Ian Hickson even called it the most noteworthy news of the day.
As far as I can remember we found out about this when we converted the first rendering of the XSL output from a lot of createElement calls to one innerHTML change for performance. This caused our custom elements to no longer be affected by CSS.
- Developer Blog
- › How to style unknown elements in IE