WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
195556
Unable to extend the DocumentFragment class
https://bugs.webkit.org/show_bug.cgi?id=195556
Summary
Unable to extend the DocumentFragment class
Andrea Giammarchi
Reported
2019-03-11 07:59:15 PDT
The following code will fail the assertion that would, otherwise, pass in every other browser that implements classes. (function () {'use strict'; class WaitWhat extends DocumentFragment {} console.assert( (new WaitWhat) instanceof WaitWhat, `any instance of a DocumentFragment extend fails` ); }()); This is true even through Reflect.construct (function () {'use strict'; class WaitWhat extends DocumentFragment {} console.assert( Reflect.construct(DocumentFragment, [], WaitWhat) instanceof WaitWhat, `any instance of a DocumentFragment extend fails` ); }()); The expected behavior is that it is possible to extend the DocumentFragment as any other built-in class.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Shvayka
Comment 1
2020-04-17 14:45:14 PDT
As of
r256716
, extending DocumentFragment (as well as other DOM constructors) works as expected.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug