Bug Tracker

Opened 11 years ago

Last modified 8 years ago

#6485 closed feature

Solution for HTML5 in IE — at Initial Version

Reported by: jonathantneal Owned by:
Priority: high Milestone: 1.7
Component: core Version: 1.4.4
Keywords: html5, innershiv, innershim, needsreview, 1.7-discuss Cc: paul.irish, SlexAxton
Blocked by: Blocking:

Description

I wanted to propose some solutions to be used for some major HTML5 issues in IE6, IE7, and IE8, especially in regards to javascript and jQuery.

Issues / Solutions:

  • HTML5 is not supported on a document, html5 elements will not properly contain contents

+ document.createElement('X') triggers support for 'X' element (you know this one, it's the "shiv I mean shim" method)

  • HTML5 is not supported with innerHTML

+ HTML5 added with innerHTML is supported when the element being innerHTML'd is already appended to a shim'd document (or document fragment!)

  • <HTML5_elements> become <:HTML5_elements> when element is cloneNode'd

+ use an alternate cloneNode function, the default is broken and should not be used in IE anyway (for example: it should not clone events)

Example of solutions, in action, with comments:

http://pastie.org/935834

Change History (0)

Note: See TracTickets for help on using tickets.