1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:17:44 +00:00

LibWeb: Implement Element.insertAdjacentElement

This commit is contained in:
Luke Wilde 2022-10-01 00:30:15 +01:00 committed by Andreas Kling
parent f27f2e0d3b
commit d540e2ec98
3 changed files with 56 additions and 0 deletions

View file

@ -144,6 +144,8 @@ public:
bool is_actually_disabled() const;
WebIDL::ExceptionOr<JS::GCPtr<Element>> insert_adjacent_element(String const& where, JS::NonnullGCPtr<Element> element);
protected:
Element(Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
@ -155,6 +157,8 @@ protected:
private:
void make_html_uppercased_qualified_name();
WebIDL::ExceptionOr<JS::GCPtr<Node>> insert_adjacent(String const& where, JS::NonnullGCPtr<Node> node);
QualifiedName m_qualified_name;
String m_html_uppercased_qualified_name;