From: Alexander Farkas Date: Sat, 13 Sep 2014 20:16:19 +0000 (+0200) Subject: Manipulation: Update html5shiv elements X-Git-Tag: 3.0.0-alpha1+compat~220 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9533893b9e5e9a248139f5794c5d6099382cf14;p=jquery.git Manipulation: Update html5shiv elements Include main, dialog, picture and template in html5shiv elements. Fixes #15241 Closes gh-1655 --- diff --git a/src/manipulation.js b/src/manipulation.js index a13fdd0ed..63fa1088d 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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+/,