/* * Copyright (c) 2021, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::DOM { NonnullRefPtr Attribute::create(Document& document, FlyString local_name, String value) { return adopt_ref(*new Attribute(document, move(local_name), move(value))); } Attribute::Attribute(Document& document, FlyString local_name, String value) : Node(document, NodeType::ATTRIBUTE_NODE) , m_qualified_name(move(local_name), {}, {}) , m_value(move(value)) { } }