Commit a9533893 authored by Alexander Farkas's avatar Alexander Farkas Committed by Michał Gołębiowski

Manipulation: Update html5shiv elements

Include main, dialog, picture and template in html5shiv elements.

Fixes #15241
Closes gh-1655
parent d4a998f6
...@@ -28,9 +28,9 @@ function createSafeFragment( document ) { ...@@ -28,9 +28,9 @@ function createSafeFragment( document ) {
return safeFrag; return safeFrag;
} }
var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|" + var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|" +
"datalist|details|figcaption|figure|footer|" + "details|dialog|figcaption|figure|footer|header|hgroup|main|" +
"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", "mark|meter|nav|output|picture|progress|section|summary|template|time|video",
rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
rleadingWhitespace = /^\s+/, rleadingWhitespace = /^\s+/,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment