@testing-library/dom
Advanced tools
Comparing version 6.8.0 to 6.8.1
@@ -772,4 +772,6 @@ 'use strict'; | ||
return true; | ||
} | ||
} // this branch is temporary code until jsdom fixes a bug | ||
// istanbul ignore else | ||
if (supportsStyleInheritance === false) { | ||
@@ -934,5 +936,3 @@ // we go bottom-up for an inheritable property so we can only set it | ||
}); | ||
return Array.from(container.querySelectorAll('*')).filter(function (element) { | ||
return hidden === false ? isInaccessible(element) === false : true; | ||
}).filter(function (node) { | ||
return Array.from(container.querySelectorAll('*')).filter(function (node) { | ||
var isRoleSpecifiedExplicitly = node.hasAttribute('role'); | ||
@@ -948,2 +948,4 @@ | ||
}); | ||
}).filter(function (element) { | ||
return hidden === false ? isInaccessible(element) === false : true; | ||
}); | ||
@@ -950,0 +952,0 @@ } |
@@ -766,4 +766,6 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
return true; | ||
} | ||
} // this branch is temporary code until jsdom fixes a bug | ||
// istanbul ignore else | ||
if (supportsStyleInheritance === false) { | ||
@@ -928,5 +930,3 @@ // we go bottom-up for an inheritable property so we can only set it | ||
}); | ||
return Array.from(container.querySelectorAll('*')).filter(function (element) { | ||
return hidden === false ? isInaccessible(element) === false : true; | ||
}).filter(function (node) { | ||
return Array.from(container.querySelectorAll('*')).filter(function (node) { | ||
var isRoleSpecifiedExplicitly = node.hasAttribute('role'); | ||
@@ -942,2 +942,4 @@ | ||
}); | ||
}).filter(function (element) { | ||
return hidden === false ? isInaccessible(element) === false : true; | ||
}); | ||
@@ -944,0 +946,0 @@ } |
@@ -26,5 +26,3 @@ "use strict"; | ||
}); | ||
return Array.from(container.querySelectorAll('*')).filter(element => { | ||
return hidden === false ? (0, _roleHelpers.isInaccessible)(element) === false : true; | ||
}).filter(node => { | ||
return Array.from(container.querySelectorAll('*')).filter(node => { | ||
const isRoleSpecifiedExplicitly = node.hasAttribute('role'); | ||
@@ -38,2 +36,4 @@ | ||
return implicitRoles.some(implicitRole => matcher(implicitRole, node, role, matchNormalizer)); | ||
}).filter(element => { | ||
return hidden === false ? (0, _roleHelpers.isInaccessible)(element) === false : true; | ||
}); | ||
@@ -40,0 +40,0 @@ } |
@@ -59,4 +59,6 @@ "use strict"; | ||
return true; | ||
} | ||
} // this branch is temporary code until jsdom fixes a bug | ||
// istanbul ignore else | ||
if (supportsStyleInheritance === false) { | ||
@@ -63,0 +65,0 @@ // we go bottom-up for an inheritable property so we can only set it |
{ | ||
"name": "@testing-library/dom", | ||
"version": "6.8.0", | ||
"version": "6.8.1", | ||
"description": "Simple and complete DOM testing utilities that encourage good testing practices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1658066
15108