summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Attr.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-12-13 13:08:46 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-14 15:21:48 +0100
commita004d3043f820947b64b8b6134ddcc53152eae17 (patch)
tree3a8eee87efa44f0d25f6d6244c704273691bf058 /Userland/Libraries/LibWeb/DOM/Attr.h
parent9a9c8460aa299e74643b54f83d9fc102c976411f (diff)
downloadserenity-a004d3043f820947b64b8b6134ddcc53152eae17.zip
LibWeb: Implement Node.cloneNode for Attr nodes
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Attr.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Attr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Attr.h b/Userland/Libraries/LibWeb/DOM/Attr.h
index 2411e7c3eb..5c48c99d4b 100644
--- a/Userland/Libraries/LibWeb/DOM/Attr.h
+++ b/Userland/Libraries/LibWeb/DOM/Attr.h
@@ -19,6 +19,7 @@ class Attr final : public Node {
public:
static JS::NonnullGCPtr<Attr> create(Document&, FlyString local_name, DeprecatedString value, Element const* = nullptr);
+ JS::NonnullGCPtr<Attr> clone(Document&);
virtual ~Attr() override = default;
@@ -42,7 +43,7 @@ public:
void handle_attribute_changes(Element&, DeprecatedString const& old_value, DeprecatedString const& new_value);
private:
- Attr(Document&, FlyString local_name, DeprecatedString value, Element const*);
+ Attr(Document&, QualifiedName, DeprecatedString value, Element const*);
virtual void visit_edges(Cell::Visitor&) override;