1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00
serenity/Libraries/LibWeb/Parser
Andreas Kling 9e642827fc LibWeb: Don't tolerate unit-less lengths (except 0) in standards mode
"width: 500" is not a valid CSS property in standards mode and should
be ignored.

To plumb the quirks-mode flag into CSS parsing, this patch adds a new
CSS::ParsingContext object that must be passed to the CSS parser.
Currently it only allows you to check the quirks-mode flag. In the
future it will be a good place to put additional information needed
for things like relative URL resolution, etc.

This narrows <div class=parser> on ACID2 to the correct width. :^)
2020-06-28 12:46:40 +02:00
..
CSSParser.cpp LibWeb: Don't tolerate unit-less lengths (except 0) in standards mode 2020-06-28 12:46:40 +02:00
CSSParser.h LibWeb: Don't tolerate unit-less lengths (except 0) in standards mode 2020-06-28 12:46:40 +02:00
Entities.cpp LibWeb: Fix parser interpreting "&quot;" as "&quot" 2020-06-10 10:34:28 +02:00
Entities.h LibWeb: Support named character references (e.g "&amp;") 2020-05-28 11:44:19 +02:00
HTMLDocumentParser.cpp LibWeb: Remove duplicate if branch in fragment parsing. 2020-06-26 11:58:53 +02:00
HTMLDocumentParser.h LibWeb: Implement fragment parsing and use it for Element.innerHTML 2020-06-26 00:53:25 +02:00
HTMLToken.cpp LibWeb: Update parser with more insertion modes :^) 2020-06-21 10:13:31 +02:00
HTMLToken.h LibWeb: Update parser with more insertion modes :^) 2020-06-21 10:13:31 +02:00
HTMLTokenizer.cpp LibWeb: Implement remaining missing tokenizer EOF cases 2020-06-27 13:27:10 +02:00
HTMLTokenizer.h LibWeb: Unbreak character reference and DOCTYPE parsing post-UTF-8 2020-06-04 22:09:36 +02:00
ListOfActiveFormattingElements.cpp LibWeb: Implement more table support in the new HTML parser 2020-05-28 00:27:46 +02:00
ListOfActiveFormattingElements.h LibWeb: Implement more table support in the new HTML parser 2020-05-28 00:27:46 +02:00
StackOfOpenElements.cpp LibWeb: Fix misunderstood implementation of "table" and "select" scopes 2020-06-21 17:42:00 +02:00
StackOfOpenElements.h LibWeb: Implement more of the foster parenting algorithm in the parser 2020-06-21 17:42:00 +02:00