1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 02:14:57 +00:00
serenity/Userland/Libraries/LibWeb/HTML/Parser
Timothy Flynn 5608bc4eaf LibWeb: Remove inheritance of FormAssociatedElement from HTMLElement
HTMLObjectElement will need to be both a FormAssociatedElement and a
BrowsingContextContainer. Currently, both of these classes inherit from
HTMLElement. This can work in C++, but is generally frowned upon, and
doesn't play particularly well with the rest of LibWeb.

Instead, we can essentially revert commit 3bb5c62 to remove HTMLElement
from FormAssociatedElement's hierarchy. This means that objects such as
HTMLObjectElement individually inherit from FormAssociatedElement and
HTMLElement now.

Some caveats are:

* FormAssociatedElement still needs to know when the HTMLElement is
  inserted into and removed from the DOM. This hook is automatically
  injected via a macro now, while still allowing classes like
  HTMLInputElement to also know when the element is inserted.

* Casting from a DOM::Element to a FormAssociatedElement is now a
  sideways cast, rather than directly following an inheritance chain.
  This means static_cast cannot be used here; but we can safely use
  dynamic_cast since the only 2 instances of this already use RTTI to
  verify the cast.
2022-03-24 03:35:11 +01:00
..
Entities.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Entities.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
HTMLEncodingDetection.cpp LibTextCodec: Don't allocate Strings on encoding normalisation 2022-03-21 10:48:17 +01:00
HTMLEncodingDetection.h LibTextCodec: Don't allocate Strings on encoding normalisation 2022-03-21 10:48:17 +01:00
HTMLParser.cpp LibWeb: Remove inheritance of FormAssociatedElement from HTMLElement 2022-03-24 03:35:11 +01:00
HTMLParser.h LibWeb: Implement the rest of the Adoption Agency Algorithm 2022-03-20 02:52:37 +01:00
HTMLToken.cpp LibWeb: Change HTMLToken storage architecture 2021-07-17 16:24:57 +04:30
HTMLToken.h Libraries: Use AK::Variant default initialization where appropriate 2021-09-21 04:22:52 +04:30
HTMLTokenizer.cpp LibWeb: Fix issue where double-quoted doctype system ID was not captured 2022-03-02 12:30:15 +01:00
HTMLTokenizer.h LibWeb: Add basic support for dynamic markup insertion 2022-02-21 18:26:43 +01:00
ListOfActiveFormattingElements.cpp LibWeb: Implement the rest of the Adoption Agency Algorithm 2022-03-20 02:52:37 +01:00
ListOfActiveFormattingElements.h LibWeb: Implement the rest of the Adoption Agency Algorithm 2022-03-20 02:52:37 +01:00
StackOfOpenElements.cpp LibWeb: Implement "has element in select scope" per-spec 2022-03-21 10:47:46 +01:00
StackOfOpenElements.h LibWeb: Implement the rest of the Adoption Agency Algorithm 2022-03-20 02:52:37 +01:00