mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Introduce CustomElementRegistry and creating custom elements
The main missing feature here is form associated custom elements.
This commit is contained in:
committed by
Andreas Kling
parent
083b547e97
commit
034aaf3f51
@@ -435,6 +435,13 @@ JS::Object& entry_global_object()
|
||||
return entry_realm().global_object();
|
||||
}
|
||||
|
||||
JS::VM& relevant_agent(JS::Object const& object)
|
||||
{
|
||||
// The relevant agent for a platform object platformObject is platformObject's relevant Realm's agent.
|
||||
// Spec Note: This pointer is not yet defined in the JavaScript specification; see tc39/ecma262#1357.
|
||||
return relevant_realm(object).vm();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#secure-context
|
||||
bool is_secure_context(Environment const& environment)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user