LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
decorators.ts:470 Uncaught TypeError: Illegal invocation
at decorators.ts:470
at Array.filter (<anonymous>)
at HTMLElement.get [as slotted] (decorators.ts:466)
at HTMLElement.__goBoom (AssignedNodes.ts:20)
at EventPart.handleEvent (parts.ts:532)
at HTMLButtonElement.EventPart.__boundHandleEvent (parts.ts:490)
Firefox
Uncaught TypeError: 'webkitMatchesSelector' called on an object that does not implement interface Element.
Safari 14
TypeError: Can only call Element.webkitMatchesSelector on instances of Element
Description
An error is throw when accessing the getter created by queryAssignedNodes with a filter targeting a slot containing nodes that are not elements.
Repository
https://github.com/ErikGrimes/lit-query-assigned-nodes-issue
Steps to Reproduce
Example:
Expected Results
No error is throw
Actual Results
Error is thrown
Chrome
Firefox
Safari 14
Browsers Affected
Versions