LibWeb: Set is value when creating a customized built-in element

This commit is contained in:
Tim Ledbetter 2025-02-02 14:45:26 +00:00 committed by Luke Wilde
commit 08c68cf699
Notes: github-actions[bot] 2025-02-04 20:08:34 +00:00
3 changed files with 632 additions and 0 deletions

View file

@ -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) {