summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/HTML/HTMLTemplateElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/HTML/HTMLTemplateElement.h')
-rw-r--r--Libraries/LibWeb/HTML/HTMLTemplateElement.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibWeb/HTML/HTMLTemplateElement.h b/Libraries/LibWeb/HTML/HTMLTemplateElement.h
index 9a8ceda156..47e383cf74 100644
--- a/Libraries/LibWeb/HTML/HTMLTemplateElement.h
+++ b/Libraries/LibWeb/HTML/HTMLTemplateElement.h
@@ -26,6 +26,7 @@
#pragma once
+#include <LibWeb/DOM/DocumentFragment.h>
#include <LibWeb/HTML/HTMLElement.h>
namespace Web::HTML {
@@ -36,6 +37,14 @@ public:
HTMLTemplateElement(DOM::Document&, const FlyString& local_name);
virtual ~HTMLTemplateElement() override;
+
+ NonnullRefPtr<DOM::DocumentFragment> content() { return *m_content; }
+ const NonnullRefPtr<DOM::DocumentFragment> content() const { return *m_content; }
+
+private:
+ DOM::Document& appropriate_template_contents_owner_document(DOM::Document&);
+
+ RefPtr<DOM::DocumentFragment> m_content;
};
}