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:
networkException 2022-07-03 21:44:00 +02:00 committed by Linus Groh
commit 6805baeedd
Notes: sideshowbarker 2024-07-17 09:43:50 +09:00
5 changed files with 19 additions and 5 deletions

View file

@ -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");