1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibWeb: Add spec comments to the StackOfOpenElements class

This commit is contained in:
Andreas Kling 2022-02-14 22:30:50 +01:00
parent 5cdbea4ae0
commit 1347c5032b

View file

@ -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();