mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
LibWeb: Validate the qualified name in createDocumentType()
1% progression on ACID3. :^)
This commit is contained in:
parent
f855cbac92
commit
262488ea33
4 changed files with 61 additions and 3 deletions
|
@ -318,6 +318,12 @@ public:
|
|||
|
||||
static bool is_valid_name(String const&);
|
||||
|
||||
struct PrefixAndTagName {
|
||||
FlyString prefix;
|
||||
FlyString tag_name;
|
||||
};
|
||||
static ExceptionOr<PrefixAndTagName> validate_qualified_name(String const& qualified_name);
|
||||
|
||||
private:
|
||||
explicit Document(const AK::URL&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue