mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +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
Notes:
sideshowbarker
2024-07-17 09:43:50 +09:00
Author: https://github.com/networkException
Commit: 6805baeedd
Pull-request: https://github.com/SerenityOS/serenity/pull/14472
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/nico
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