aboutsummaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-07-20 20:22:34 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-07-20 20:22:34 +0200
commitd24275372624bac897c4131fd1507a58c09a1483 (patch)
treedc572673d29592a45ecc4350c619efd0bd24436f /src/core
parent1c59b308d201d6dd0f0aed2ad0256d01b9f68047 (diff)
downloadjquery-d24275372624bac897c4131fd1507a58c09a1483.tar.gz
jquery-d24275372624bac897c4131fd1507a58c09a1483.zip
Core: Add a support comment for Safari 8
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337 Thanks @phistuck! Refs cfe468f29c4cbe1a457d0feb17dec90dcfd7c280
Diffstat (limited to 'src/core')
-rw-r--r--src/core/support.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/support.js b/src/core/support.js
index 4ef1dacab..68d20e353 100644
--- a/src/core/support.js
+++ b/src/core/support.js
@@ -3,6 +3,11 @@ define([
"../var/support"
], function( document, support ) {
+// Support: Safari 8+
+// In Safari 8 documents created via document.implementation.createHTMLDocument
+// collapse sibling forms: the second one becomes a child of the first one.
+// Because of that, this security measure has to be disabled in Safari 8.
+// https://bugs.webkit.org/show_bug.cgi?id=137337
support.createHTMLDocument = (function() {
var body = document.implementation.createHTMLDocument( "" ).body;
body.innerHTML = "<form></form><form></form>";