/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web::DOM { class DocumentFragment : public ParentNode , public NonElementParentNode { public: using WrapperType = Bindings::DocumentFragmentWrapper; explicit DocumentFragment(Document& document); virtual ~DocumentFragment() override; virtual FlyString node_name() const override { return "#document-fragment"; } RefPtr host() { return m_host; } const RefPtr host() const { return m_host; } void set_host(Element& host) { m_host = host; } private: RefPtr m_host; }; }