mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Make DOMImplementation.createHTMLDocument() create HTMLDocument
Prior to this change, this API would actually create an XML Document(!)
This commit is contained in:
parent
b9bacb3ff4
commit
99ca2ccf08
5 changed files with 28 additions and 2 deletions
|
@ -15,7 +15,7 @@ namespace Web::HTML {
|
|||
// https://github.com/whatwg/html/issues/4792
|
||||
// https://github.com/whatwg/dom/issues/221
|
||||
class HTMLDocument final : public DOM::Document {
|
||||
JS_CELL(HTMLDocument, DOM::Document);
|
||||
WEB_PLATFORM_OBJECT(HTMLDocument, DOM::Document);
|
||||
JS_DECLARE_ALLOCATOR(HTMLDocument);
|
||||
|
||||
public:
|
||||
|
@ -25,6 +25,8 @@ public:
|
|||
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLDocument>> construct_impl(JS::Realm&);
|
||||
|
||||
private:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
HTMLDocument(JS::Realm&, URL const&);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue