Commit 19c0377f authored by Michał Gołębiowski's avatar Michał Gołębiowski

Core: Update tested jsdom, drop obsolete workarounds

The latest version supporting Node.js is 3.1.2; some workarounds are not needed
for this version. For example, in jsdom 3.1.2 a document created via
document.implementation.createHTMLDocument( "" ) has a body.

(partially cherry-picked from 95c0a10e15477a5031185e2d656d896905562afa)

Fixes gh-2153
Closes gh-2154
parent 7b111310
...@@ -134,7 +134,7 @@ test("Data is not being set on comment and text nodes", function() { ...@@ -134,7 +134,7 @@ test("Data is not being set on comment and text nodes", function() {
}); });
test("jQuery.acceptData", function() { test("jQuery.acceptData", function() {
expect( 11 ); expect( 10 );
var flash, pdf; var flash, pdf;
...@@ -142,7 +142,6 @@ test("jQuery.acceptData", function() { ...@@ -142,7 +142,6 @@ test("jQuery.acceptData", function() {
ok( jQuery.acceptData( document.documentElement ), "documentElement" ); ok( jQuery.acceptData( document.documentElement ), "documentElement" );
ok( jQuery.acceptData( {} ), "object" ); ok( jQuery.acceptData( {} ), "object" );
ok( !jQuery.acceptData( document.createElement( "embed" ) ), "embed" ); ok( !jQuery.acceptData( document.createElement( "embed" ) ), "embed" );
ok( !jQuery.acceptData( document.createElement( "applet" ) ), "applet" );
flash = document.createElement( "object" ); flash = document.createElement( "object" );
flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ); flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment