mirror of
https://github.com/jquery/jquery.git
synced 2026-02-04 09:44:55 -05:00
Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035.
This commit is contained in:
@@ -54,7 +54,7 @@ test( "jQuery.propFix integrity test", function() {
|
||||
});
|
||||
|
||||
test( "attr(String)", function() {
|
||||
expect( 47 );
|
||||
expect( 48 );
|
||||
|
||||
equal( jQuery("#text1").attr("type"), "text", "Check for type attribute" );
|
||||
equal( jQuery("#radio1").attr("type"), "radio", "Check for type attribute" );
|
||||
@@ -94,6 +94,9 @@ test( "attr(String)", function() {
|
||||
equal( jQuery("#tAnchor5").attr("href"), "#5", "Check for non-absolute href (an anchor)" );
|
||||
jQuery("<a id='tAnchor6' href='#5' />").appendTo("#qunit-fixture");
|
||||
equal( jQuery("#tAnchor5").prop("href"), jQuery("#tAnchor6").prop("href"), "Check for absolute href prop on an anchor" );
|
||||
|
||||
$("<script type='jquery/test' src='#5' id='scriptSrc'></script>").appendTo("#qunit-fixture");
|
||||
equal( jQuery("#tAnchor5").prop("href"), jQuery("#scriptSrc").prop("src"), "Check for absolute src prop on a script" );
|
||||
|
||||
// list attribute is readonly by default in browsers that support it
|
||||
jQuery("#list-test").attr( "list", "datalist" );
|
||||
|
||||
Reference in New Issue
Block a user