]> source.dussan.org Git - jquery.git/commitdiff
Core: Add a support comment for Safari 8
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 20 Jul 2015 18:22:34 +0000 (20:22 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 20 Jul 2015 18:25:03 +0000 (20:25 +0200)
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337

Thanks @phistuck!

(cherry-picked from d24275372624bac897c4131fd1507a58c09a1483)

Refs cfe468f29c4cbe1a457d0feb17dec90dcfd7c280

src/core/support.js

index eb88d8bf93e5e441a58e0ef0a5f1e66eda7a0e2f..e154502752f518c94c16b82e38a39ece4d27ff09 100644 (file)
@@ -2,6 +2,11 @@ define([
        "../var/support"
 ], function( 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() {
        if ( !document.implementation.createHTMLDocument ) {
                return false;