mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Remove ShadowRealm HTML integration
This commit is contained in:
committed by
Shannon Booth
parent
f27bc38aa7
commit
bb0f244667
Notes:
github-actions[bot]
2026-04-05 11:58:52 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/bb0f244667d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8753
@@ -41,7 +41,6 @@ JS::ThrowCompletionOr<JS::Value> OptionConstructor::call()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-option
|
||||
// https://whatpr.org/html/9893/form-elements.html#dom-option
|
||||
// https://webidl.spec.whatwg.org/#legacy-factory-functions
|
||||
JS::ThrowCompletionOr<GC::Ref<JS::Object>> OptionConstructor::construct(FunctionObject& new_target)
|
||||
{
|
||||
@@ -53,8 +52,8 @@ JS::ThrowCompletionOr<GC::Ref<JS::Object>> OptionConstructor::construct(Function
|
||||
if (text_value.is_undefined())
|
||||
text_value = &vm.empty_string();
|
||||
|
||||
// 1. Let document be the current principal global object's associated Document.
|
||||
auto& window = as<HTML::Window>(HTML::current_principal_global_object());
|
||||
// 1. Let document be the current global object's associated Document.
|
||||
auto& window = as<HTML::Window>(HTML::current_global_object());
|
||||
auto& document = window.associated_document();
|
||||
|
||||
// 2. Let option be the result of creating an element given document, "option", and the HTML namespace.
|
||||
|
||||
Reference in New Issue
Block a user