mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
LibWeb: Implement quirks mode detection
This allows us to determine which mode to render the page in. Exposes "doctype" and "compatMode" on Document. Exposes "name", "publicId" and "systemId" on DocumentType.
This commit is contained in:
parent
a5ecb9bd6b
commit
19d6884529
13 changed files with 196 additions and 6 deletions
|
@ -174,9 +174,14 @@ private:
|
|||
|
||||
// Type::DOCTYPE
|
||||
struct {
|
||||
// NOTE: "Missing" is a distinct state from the empty string.
|
||||
|
||||
StringBuilder name;
|
||||
bool missing_name { true };
|
||||
StringBuilder public_identifier;
|
||||
bool missing_public_identifier { true };
|
||||
StringBuilder system_identifier;
|
||||
bool missing_system_identifier { true };
|
||||
bool force_quirks { false };
|
||||
} m_doctype;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue