bug: MockHTMLElement
class is missing localName
property
#5342
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Good First Issue
This is a good first issue for someone wantng to contribute to Stencil!
Prerequisites
Stencil Version
4.12.1
Current Behavior
When running tests with
stencil test --specs
, thelocalName
of an elements (converted to aMockHTMLElement
) isundefined
. I'm using the dialog-polyfill library that relies on thelocalName
when checking if an element is adialog
.Expected Behavior
The mocked html element to have the correct
localName
System Info
Steps to Reproduce
Throw an error in a tested component checking for
localName
on an element referenceor run
yarn test
in the linked repoCode Reproduction URL
https://github.com/DarioSacco/stencil-mockhtmlelement-localname-bug
Additional Information
No response
The text was updated successfully, but these errors were encountered: