mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/XML: Make namespace getter reject invalid qualified names
Names like ":hi", "wow:", or "a🅱️c" are invalid, so early-out instead
of searching our namespace stack for matching prefixes.
And also rename the function because it's relevant to attributes too.
This commit is contained in:
parent
7d797b2c32
commit
c99aac4bf0
Notes:
github-actions[bot]
2025-04-15 08:40:20 +00:00
Author: https://github.com/AtkinsSJ
Commit: c99aac4bf0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4321
2 changed files with 12 additions and 5 deletions
|
@ -38,7 +38,7 @@ private:
|
|||
virtual void comment(StringView data) override;
|
||||
virtual void document_end() override;
|
||||
|
||||
Optional<FlyString> namespace_for_element(XML::Name const& element_name);
|
||||
Optional<FlyString> namespace_for_name(XML::Name const&);
|
||||
|
||||
GC::Ref<DOM::Document> m_document;
|
||||
GC::Ptr<DOM::Node> m_current_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue