[Webkit-unassigned] [Bug 195556] New: Unable to extend the DocumentFragment class
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 11 07:59:15 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=195556
Bug ID: 195556
Summary: Unable to extend the DocumentFragment class
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: macOS 10.14
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: andrea.giammarchi at gmail.com
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190311/11f864f1/attachment-0001.html>
More information about the webkit-unassigned
mailing list