mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibWeb: Implement stub for ElementInternals
This implements a stub ElementInternals object which implements the shadowRoot getter only. Also implement attachInternals function.
This commit is contained in:
parent
ce8d3d17c4
commit
a65f1ecc37
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/lukewarlow
Commit: a65f1ecc37
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/272
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/tcl3
13 changed files with 193 additions and 1 deletions
|
@ -75,6 +75,8 @@ public:
|
|||
String get_an_elements_target() const;
|
||||
TokenizedFeature::NoOpener get_an_elements_noopener(StringView target) const;
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<ElementInternals>> attach_internals();
|
||||
|
||||
protected:
|
||||
HTMLElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
@ -97,6 +99,9 @@ private:
|
|||
|
||||
JS::GCPtr<DOM::NodeList> m_labels;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#attached-internals
|
||||
JS::GCPtr<ElementInternals> m_attached_internals;
|
||||
|
||||
enum class ContentEditableState {
|
||||
True,
|
||||
False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue