mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibWeb: Check for valid names in Document.createElement() & friends
We now validate that the provided tag names are valid XML tag names, and otherwise throw an "invalid character" DOM exception. 2% progression on ACID3. :^)
This commit is contained in:
parent
8daf603f46
commit
fe67fe3791
7 changed files with 82 additions and 24 deletions
|
@ -28,7 +28,7 @@ public:
|
|||
}
|
||||
|
||||
// FIXME: Add optional DocumentType once supported by IDL
|
||||
NonnullRefPtr<Document> create_document(const String&, const String&) const;
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue