@rohal12/spindle 0.64.15 → 0.64.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,7 @@ export function* composedElements(root: ParentNode): Generator<HTMLElement> {
34
34
  }
35
35
 
36
36
  /** Elements whose content is never text the reader reads. */
37
- const NOT_TEXT = new Set(['SCRIPT', 'STYLE', 'TEMPLATE', 'NOSCRIPT']);
37
+ const NOT_TEXT = new Set(['script', 'style', 'template', 'noscript']);
38
38
 
39
39
  /**
40
40
  * Whether the element hides its whole subtree, including stylesheet rules.
@@ -46,7 +46,7 @@ export function isHidden(el: Element): boolean {
46
46
  el.getAttribute('aria-hidden') === 'true' ||
47
47
  /(^|;)\s*display\s*:\s*none\b/i.test(el.getAttribute('style') ?? '') ||
48
48
  el.ownerDocument.defaultView?.getComputedStyle(el).display === 'none' ||
49
- NOT_TEXT.has(el.tagName) ||
49
+ NOT_TEXT.has(el.localName.toLowerCase()) ||
50
50
  (el.parentElement?.tagName === 'DETAILS' &&
51
51
  !el.parentElement.hasAttribute('open') &&
52
52
  el !==