/* * Copyright (c) 2018-2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Web::DOM { Text::Text(Document& document, const String& data) : CharacterData(document, NodeType::TEXT_NODE, data) { } // https://dom.spec.whatwg.org/#dom-text-text NonnullRefPtr Text::create_with_global_object(Bindings::WindowObject& window, String const& data) { return make_ref_counted(window.impl().associated_document(), data); } void Text::set_owner_input_element(Badge, HTML::HTMLInputElement& input_element) { m_owner_input_element = input_element; } }