1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibWeb: Validate the qualified name in createDocumentType()

1% progression on ACID3. :^)
This commit is contained in:
Andreas Kling 2022-02-26 17:26:37 +01:00
parent f855cbac92
commit 262488ea33
4 changed files with 61 additions and 3 deletions

View file

@ -30,7 +30,7 @@ public:
// FIXME: Add optional DocumentType once supported by IDL
ExceptionOr<NonnullRefPtr<Document>> create_document(const String&, const String&) const;
NonnullRefPtr<Document> create_html_document(const String& title) const;
NonnullRefPtr<DocumentType> create_document_type(String const& qualified_name, String const& public_id, String const& system_id);
ExceptionOr<NonnullRefPtr<DocumentType>> create_document_type(String const& qualified_name, String const& public_id, String const& system_id);
// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
bool has_feature() const { return true; }