Skip to content

Commit d242753

Browse files
committed
Core: Add a support comment for Safari 8
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337 Thanks @phistuck! Refs cfe468f
1 parent 1c59b30 commit d242753

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/support.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ define([
33
"../var/support"
44
], function( document, support ) {
55

6+
// Support: Safari 8+
7+
// In Safari 8 documents created via document.implementation.createHTMLDocument
8+
// collapse sibling forms: the second one becomes a child of the first one.
9+
// Because of that, this security measure has to be disabled in Safari 8.
10+
// https://bugs.webkit.org/show_bug.cgi?id=137337
611
support.createHTMLDocument = (function() {
712
var body = document.implementation.createHTMLDocument( "" ).body;
813
body.innerHTML = "<form></form><form></form>";

0 commit comments

Comments
 (0)