mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
16
test/data/data/dataAttrs.html
Normal file
16
test/data/data/dataAttrs.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>IE11 onpageshow strangeness (#14894)</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
window.parent.iframeCallback( $( "body" ).data().result );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body x-what="test" data-result="ok" onload="x=1" onpageshow="x=1">
|
||||
Test for #14894
|
||||
</body>
|
||||
</html>
|
||||
@@ -801,3 +801,9 @@ test("Check proper data removal of non-element descendants nodes (#8335)", 1, fu
|
||||
|
||||
ok( !text.data("test"), "Be sure data is not stored in non-element" );
|
||||
});
|
||||
|
||||
testIframeWithCallback( "enumerate data attrs on body (#14894)", "data/dataAttrs.html", function( result ) {
|
||||
expect(1);
|
||||
|
||||
equal(result, "ok", "enumeration of data- attrs on body" );
|
||||
});
|
||||
Reference in New Issue
Block a user