File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,6 @@ function buildElementRoleList(elementRolesMap) {
106
106
107
107
function match ( element ) {
108
108
let { attributes = [ ] } = element
109
- const { name} = element
110
- const upperCasedTagName = name && name . toUpperCase ( )
111
109
112
110
// https://github.com/testing-library/dom-testing-library/issues/814
113
111
const typeTextIndex = attributes . findIndex (
@@ -128,12 +126,6 @@ function buildElementRoleList(elementRolesMap) {
128
126
const selector = makeElementSelector ( { ...element , attributes} )
129
127
130
128
return node => {
131
- if ( upperCasedTagName && node . tagName !== upperCasedTagName ) {
132
- // Short-circuit if tag name does not match,
133
- // because this code runs in a tight loop over many nodes and many roles.
134
- return false
135
- }
136
-
137
129
if ( typeTextIndex >= 0 && node . type !== 'text' ) {
138
130
return false
139
131
}
You can’t perform that action at this time.
0 commit comments