Commit 7999a01
committed
Selection: Check for ancestor fieldsets when matching :enabled/:disabled
SemVer patch
Fixes gh-174
Ref https://www.w3.org/Bugs/Public/show_bug.cgi?id=26622
Closes ;2113- return div.firstChild.getAttribute("href") === "#" ;2155+if ( !assert(function( el ) {2156+ el.innerHTML = "<a href='#'></a>";2157+ return el.firstChild.getAttribute("href") === "#" ;21142158}) ) {21152159 addHandle( "type|href|height|width", function( elem, name, isXML ) {21162160 if ( !isXML ) {@@ -2121,10 +2165,10 @@ if ( !assert(function( div ) {21212165
21222166// Support: IE<921232167// Use defaultValue in place of getAttribute("value")2124-if ( !support.attributes || !assert(function( div ) {2125- div.innerHTML = "<input/>";2126- div.firstChild.setAttribute( "value", "" );2127- return div.firstChild.getAttribute( "value" ) === "";2168+if ( !support.attributes || !assert(function( el ) {2169+ el.innerHTML = "<input/>";2170+ el.firstChild.setAttribute( "value", "" );2171+ return el.firstChild.getAttribute( "value" ) === "";21282172}) ) {21292173 addHandle( "value", function( elem, name, isXML ) {21302174 if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {@@ -2135,8 +2179,8 @@ if ( !support.attributes || !assert(function( div ) {21352179
21362180// Support: IE<921372181// Use getAttributeNode to fetch booleans when getAttribute lies2138-if ( !assert(function( div ) {2139- return div.getAttribute("disabled") == null;2182+if ( !assert(function( el ) {2183+ return el.getAttribute("disabled") == null;21402184}) ) {21412185 addHandle( booleans, function( elem, name, isXML ) {21422186 var val;
0 commit comments