Andreas Kling
1c2b6b074e
LibWeb: Fix misunderstood implementation of "table" and "select" scopes
...
These "stack of open elements" scopes are not supposed to include the
base list of element types.
2020-06-21 17:42:00 +02:00
Andreas Kling
966bc05fef
LibWeb: Implement more of the foster parenting algorithm in the parser
2020-06-21 17:42:00 +02:00
Andreas Kling
ca6fbefbc9
LibWeb: Support parsing "select" elements (outside of tables)
2020-05-30 19:58:52 +02:00
Andreas Kling
1212485348
LibWeb: Fix typo in StackOfOpenElements::topmost_special_node_below()
...
Backwards iteration works better if we actually go backwards! :^)
2020-05-30 18:49:48 +02:00
Andreas Kling
fbd52047bb
LibWeb: Parse "form" tags during the "in body" insertion mode
2020-05-30 11:31:49 +02:00
Andreas Kling
6854f726ce
LibWeb: Improve support for "a" and "li" during "in body" insertion
...
We can now parse welcome.html once again, without resorting to hacks
or fallbacks during "in body" :^)
2020-05-30 11:31:49 +02:00
Andreas Kling
c84212aaba
LibWeb: Add a StackOfOpenElements helper for "popping until a tag name"
2020-05-28 18:18:20 +02:00
Andreas Kling
db6cf9b37d
LibWeb: Implement the first half of the Adoption Agency Algorithm
...
The AAA is a somewhat daunting algorithm you have to run for certain
tag when inserted inside the <body> element. The purpose of it is to
resolve issues with mismatched tags.
This patch implements the first half of the AAA. We also move the
"list of active formatting elements" to its own class, since it kept
accumulating little behaviors. "Marker" entries are now signified by
null Element pointers in the list.
2020-05-27 23:22:42 +02:00
Andreas Kling
1e30ef239b
LibWeb: Start fleshing out the "in table" parser insertion mode
2020-05-25 20:30:34 +02:00
Andreas Kling
21b1aba03b
LibWeb: Add missing copyright header
2020-05-25 00:25:33 +02:00
Andreas Kling
4cbe202d2c
LibWeb: Finally parse enough that we can actually handle welcome.html!
...
We made it, at last! What a long journey this was. :^)
2020-05-24 23:54:22 +02:00
Andreas Kling
65d8d5e83e
LibWeb: Yet more work towards parsing www/welcome.html :^)
2020-05-24 23:54:22 +02:00
Andreas Kling
53d2f4df70
LibWeb: Factor out the "stack of open elements" into its own class
...
This will allow us to write more expressive parsing code. :^)
2020-05-24 23:54:22 +02:00