Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bower_components/jquery/src/core/support.js')
-rw-r--r--libs/bower_components/jquery/src/core/support.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/bower_components/jquery/src/core/support.js b/libs/bower_components/jquery/src/core/support.js
new file mode 100644
index 0000000000..0609a700b6
--- /dev/null
+++ b/libs/bower_components/jquery/src/core/support.js
@@ -0,0 +1,18 @@
+define( [
+ "../var/document",
+ "../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>";
+ return body.childNodes.length === 2;
+} )();
+
+return support;
+} );