mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Set is
value when creating a customized built-in element
This commit is contained in:
parent
70097a7141
commit
08c68cf699
Notes:
github-actions[bot]
2025-02-04 20:08:34 +00:00
Author: https://github.com/tcl3
Commit: 08c68cf699
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3426
3 changed files with 632 additions and 0 deletions
|
@ -545,6 +545,7 @@ WebIDL::ExceptionOr<GC::Ref<Element>> create_element(Document& document, FlyStri
|
|||
// namespace prefix set to prefix, local name set to localName, custom element state set to "undefined", custom element definition set to null,
|
||||
// is value set to is, and node document set to document.
|
||||
auto element = create_html_element(realm, document, QualifiedName { local_name, prefix, Namespace::HTML });
|
||||
element->set_is_value(is_value);
|
||||
|
||||
// 3. If the synchronous custom elements flag is set, then run this step while catching any exceptions:
|
||||
if (synchronous_custom_elements_flag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue