diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h b/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h index 49de74d50d..c51a43fc8f 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h @@ -16,6 +16,8 @@ namespace Web::HTML { +class HTMLTokenizer; + class HTMLToken { friend class HTMLDocumentParser; friend class HTMLTokenizer; @@ -282,6 +284,9 @@ public: Position const& start_position() const { return m_start_position; } Position const& end_position() const { return m_end_position; } + void set_start_position(Badge<HTMLTokenizer>, Position start_position) { m_start_position = start_position; } + void set_end_position(Badge<HTMLTokenizer>, Position end_position) { m_end_position = end_position; } + private: Type m_type { Type::Invalid }; |