support.js 631 B

1234567891011121314151617181920
  1. define( [
  2. "../var/document",
  3. "../var/support"
  4. ], function( document, support ) {
  5. "use strict";
  6. // Support: Safari 8 only
  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
  11. support.createHTMLDocument = ( function() {
  12. var body = document.implementation.createHTMLDocument( "" ).body;
  13. body.innerHTML = "<form></form><form></form>";
  14. return body.childNodes.length === 2;
  15. } )();
  16. return support;
  17. } );