-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix element not calling attach internals #130
base: main
Are you sure you want to change the base?
Fix element not calling attach internals #130
Conversation
906d195
to
df3a298
Compare
Let’s rebase this and I’ll get it reviewed/merged. Appreciate the contribution @christophe-g and the feedback in the PR @asyncLiz. |
This is to allow run playwright webkit on linux Mint
4441adb
to
96428e8
Compare
@calebdwilliams - rebased against latest commit. |
@@ -393,9 +393,6 @@ export function forceElementInternalsPolyfill(forceCustomStateSet = true) { | |||
} else if (this.tagName.indexOf('-') === -1) { | |||
throw new Error(`Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.`); | |||
} | |||
if (internalsMap.has(this)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is the right fix. This is removing a guard against attaching a second internals instance. I think a better fix would be to not call upgrade internals if an instance it doesn't exist.
Fix #127
The regression test does not pass on webkit without the fix