mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:48:11 +00:00
LibWeb: Make Element::has_attribute take a StringView
It calls Element::get_attribute which takes a StringView. Ultimately, this should be taking a FlyString, but to help in porting away from DeprecatedString, just leave a FIXME for that for now.
This commit is contained in:
parent
52fccae654
commit
79f97da4b4
5 changed files with 8 additions and 5 deletions
|
@ -302,7 +302,7 @@ void Element::remove_attribute(StringView name)
|
|||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-hasattribute
|
||||
bool Element::has_attribute(DeprecatedFlyString const& name) const
|
||||
bool Element::has_attribute(StringView name) const
|
||||
{
|
||||
return m_attributes->get_attribute(name) != nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue