1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +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:
networkException 2022-07-03 21:44:00 +02:00 committed by Linus Groh
parent baac3ba60c
commit 6805baeedd
5 changed files with 19 additions and 5 deletions

View file

@ -680,7 +680,7 @@ NonnullRefPtr<Node> Node::clone_node(Document* document, bool clone_children)
document_copy->set_content_type(document_->content_type());
document_copy->set_url(document_->url());
document_copy->set_origin(document_->origin());
// FIXME: Set type ("xml" or "html")
document_copy->set_document_type(document_->document_type());
document_copy->set_quirks_mode(document_->mode());
copy = move(document_copy);
} else if (is<DocumentType>(this)) {