mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Add the type field to DOM::Document
This patch adds the document type concept to documents and sets it in various places.
This commit is contained in:
committed by
Linus Groh
parent
baac3ba60c
commit
6805baeedd
@@ -53,7 +53,6 @@ ExceptionOr<NonnullRefPtr<Document>> DOMImplementation::create_document(String c
|
||||
// https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
|
||||
NonnullRefPtr<Document> DOMImplementation::create_html_document(String const& title) const
|
||||
{
|
||||
// FIXME: This should specifically be a HTML document.
|
||||
auto html_document = Document::create();
|
||||
|
||||
html_document->set_content_type("text/html");
|
||||
|
||||
Reference in New Issue
Block a user