1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWeb: Implement Element.hasAttributeNS

Particularly needed by xkcd's Right Click comic. https://xkcd.com/1975/
This commit is contained in:
Luke Wilde 2023-08-09 21:31:35 +01:00 committed by Tim Flynn
parent 3a98c48f20
commit 5694981352
3 changed files with 13 additions and 0 deletions

View file

@ -88,6 +88,7 @@ public:
DeprecatedFlyString const& namespace_uri() const { return namespace_(); }
bool has_attribute(DeprecatedFlyString const& name) const;
bool has_attribute_ns(DeprecatedFlyString namespace_, DeprecatedFlyString const& name) const;
bool has_attributes() const;
DeprecatedString attribute(DeprecatedFlyString const& name) const { return get_attribute(name); }
DeprecatedString get_attribute(DeprecatedFlyString const& name) const;