LibWeb: Add customElements.getName

This commit is contained in:
Keith Cirkel
2024-07-06 15:35:10 +01:00
committed by Andrew Kaster
parent 51f5da00d7
commit 8d593bcfeb
Notes: sideshowbarker 2024-07-17 05:00:08 +09:00
3 changed files with 17 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ public:
JS::ThrowCompletionOr<void> define(String const& name, WebIDL::CallbackType* constructor, ElementDefinitionOptions options);
Variant<JS::Handle<WebIDL::CallbackType>, JS::Value> get(String const& name) const;
Optional<String> get_name(JS::Handle<WebIDL::CallbackType> const& constructor) const;
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> when_defined(String const& name);
void upgrade(JS::NonnullGCPtr<DOM::Node> root) const;