Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1010@patch: Check HTMLButtonElementNamedNodeMap removedItem is defined before accessing properties #1011

Merged

Conversation

maxmilton
Copy link
Contributor

@maxmilton maxmilton commented Aug 4, 2023

Fixes #1010

Check that removedItem exists before trying to access properties in HTMLButtonElementNamedNodeMap. Same solution as exists in the inherited HTMLElementNamedNodeMap class; https://github.com/capricorn86/happy-dom/blob/master/packages/happy-dom/src/nodes/html-element/HTMLElementNamedNodeMap.ts#L32.

Also added another test for this specific case in #1010

@capricorn86 capricorn86 force-pushed the bug/1010-button-disable-false branch from 8c4d1ad to e62d2fd Compare August 4, 2023 20:28
@capricorn86 capricorn86 merged commit 7583984 into capricorn86:master Aug 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting disabled to false on a Button throws TypeError: null is not an object
4 participants