mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:52:07 +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:
parent
baac3ba60c
commit
6805baeedd
5 changed files with 19 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue