summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Parser
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-14 22:30:50 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-15 02:05:53 +0100
commit1347c5032b0f71b4b62bfbff5c855ae6675e788f (patch)
tree44ee48a261d61668cdb9f8ea7f0a1fd9fe45aa74 /Userland/Libraries/LibWeb/HTML/Parser
parent5cdbea4ae0e70862f2cfab789374ba6c37c5d71b (diff)
downloadserenity-1347c5032b0f71b4b62bfbff5c855ae6675e788f.zip
LibWeb: Add spec comments to the StackOfOpenElements class
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h b/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h
index 7885157bd6..324a89025a 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h
+++ b/Userland/Libraries/LibWeb/HTML/Parser/StackOfOpenElements.h
@@ -12,8 +12,14 @@
namespace Web::HTML {
+// https://html.spec.whatwg.org/multipage/parsing.html#stack-of-open-elements
class StackOfOpenElements {
public:
+ // Initially, the stack of open elements is empty.
+ // The stack grows downwards; the topmost node on the stack is the first one added to the stack,
+ // and the bottommost node of the stack is the most recently added node in the stack
+ // (notwithstanding when the stack is manipulated in a random access fashion as part of the handling for misnested tags).
+
StackOfOpenElements() { }
~StackOfOpenElements();