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
commit ebb1649a52
Notes: sideshowbarker 2024-07-19 06:03:28 +09:00
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(); }