mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +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:
parent
7f18c51f4c
commit
ebb1649a52
5 changed files with 142 additions and 1 deletions
|
@ -71,4 +71,13 @@ void ListOfActiveFormattingElements::remove(Element& element)
|
|||
});
|
||||
}
|
||||
|
||||
void ListOfActiveFormattingElements::clear_up_to_the_last_marker()
|
||||
{
|
||||
while (!m_entries.is_empty()) {
|
||||
auto entry = m_entries.take_last();
|
||||
if (entry.is_marker())
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue