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:
parent
5cdbea4ae0
commit
1347c5032b
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue