mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Check for Svg & MathML tags in stack of open elements scope
list & button scope need to check svg & mathml elements besides the list from s_base_list see https://html.spec.whatwg.org/multipage/parsing.html#has-an-element-in-the-specific-scope
This commit is contained in:
parent
125b13a0cb
commit
e6831003c6
Notes:
github-actions[bot]
2025-10-10 11:10:30 +00:00
Author: https://github.com/lpas
Commit: e6831003c6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6065
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
4 changed files with 28 additions and 15 deletions
|
|
@ -63,7 +63,12 @@ public:
|
|||
void visit_edges(JS::Cell::Visitor&);
|
||||
|
||||
private:
|
||||
bool has_in_scope_impl(FlyString const& tag_name, Vector<FlyString> const&) const;
|
||||
enum class CheckMathAndSVG : u8 {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
bool has_in_scope_impl(FlyString const& tag_name, Vector<FlyString> const&, CheckMathAndSVG) const;
|
||||
bool has_in_scope_impl(DOM::Element const& target_node, Vector<FlyString> const&) const;
|
||||
|
||||
Vector<GC::Ref<DOM::Element>> m_elements;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue