1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

LibWeb: Implement more table support in the new HTML parser

This is enough to parse the Google front page! (Note: I did have to
hack the tokenizer while parsing Google, in order to avoid named
character references screwing everything up. We'll fix that too soon
enough!)
This commit is contained in:
Andreas Kling 2020-05-28 00:27:46 +02:00
parent 7f18c51f4c
commit ebb1649a52
5 changed files with 142 additions and 1 deletions

View file

@ -37,6 +37,9 @@ public:
StackOfOpenElements() { }
~StackOfOpenElements();
Element& first() { return m_elements.first(); }
Element& last() { return m_elements.last(); }
bool is_empty() const { return m_elements.is_empty(); }
void push(NonnullRefPtr<Element> element) { m_elements.append(move(element)); }
NonnullRefPtr<Element> pop() { return m_elements.take_last(); }