mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibWeb: Move HTML classes into the Web::HTML namespace
This commit is contained in:
parent
ebd2e7d9f5
commit
c46439f240
82 changed files with 238 additions and 247 deletions
|
@ -62,18 +62,18 @@ Node::~Node()
|
|||
layout_node()->parent()->remove_child(*layout_node());
|
||||
}
|
||||
|
||||
const HTMLAnchorElement* Node::enclosing_link_element() const
|
||||
const HTML::HTMLAnchorElement* Node::enclosing_link_element() const
|
||||
{
|
||||
for (auto* node = this; node; node = node->parent()) {
|
||||
if (is<HTMLAnchorElement>(*node) && downcast<HTMLAnchorElement>(*node).has_attribute(HTML::AttributeNames::href))
|
||||
return downcast<HTMLAnchorElement>(node);
|
||||
if (is<HTML::HTMLAnchorElement>(*node) && downcast<HTML::HTMLAnchorElement>(*node).has_attribute(HTML::AttributeNames::href))
|
||||
return downcast<HTML::HTMLAnchorElement>(node);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const HTMLElement* Node::enclosing_html_element() const
|
||||
const HTML::HTMLElement* Node::enclosing_html_element() const
|
||||
{
|
||||
return first_ancestor_of_type<HTMLElement>();
|
||||
return first_ancestor_of_type<HTML::HTMLElement>();
|
||||
}
|
||||
|
||||
String Node::text_content() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue