File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
13const { dom } = require ( 'aria-query' ) ;
4+ const { isNativeElement } = require ( '../utils/is-native-element' ) ;
25
36// Mouse-event → focus/blur pairings. Default to jsx-a11y's handler set
47// (mouseover / mouseout only) — the canonical peer-plugin default. Authors
@@ -78,10 +81,14 @@ module.exports = {
7881 const options = context . options [ 0 ] || { } ;
7982 const hoverInHandlers = options . hoverInHandlers || DEFAULT_HOVER_IN_HANDLERS ;
8083 const hoverOutHandlers = options . hoverOutHandlers || DEFAULT_HOVER_OUT_HANDLERS ;
84+ const sourceCode = context . sourceCode ;
8185
8286 return {
8387 GlimmerElementNode ( node ) {
84- if ( ! node . tag || ! dom . has ( node . tag ) ) {
88+ if ( ! isNativeElement ( node , sourceCode ) ) {
89+ return ;
90+ }
91+ if ( ! dom . has ( node . tag . toLowerCase ( ) ) ) {
8592 return ;
8693 }
8794
You can’t perform that action at this time.
0 commit comments