]> source.dussan.org Git - jquery.git/commitdiff
Manipulation: Update html5shiv elements 1665/head
authorAlexander Farkas <info@corrupt-system.de>
Sat, 13 Sep 2014 20:16:19 +0000 (22:16 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Sat, 13 Sep 2014 20:32:50 +0000 (15:32 -0500)
Include main, dialog, picture and template in html5shiv elements.

Fixes #15241
Closes gh-1655

src/manipulation.js

index a13fdd0edfd3b7401014786428d4d72b0ebc62c4..63fa1088dfd6d0649dc4b782a7bfaf1978201b30 100644 (file)
@@ -28,9 +28,9 @@ function createSafeFragment( document ) {
        return safeFrag;
 }
 
-var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|" +
-               "datalist|details|figcaption|figure|footer|" +
-               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
+var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|" +
+               "details|dialog|figcaption|figure|footer|header|hgroup|main|" +
+               "mark|meter|nav|output|picture|progress|section|summary|template|time|video",
        rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
        rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
        rleadingWhitespace = /^\s+/,