You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FIXME: 1. If the active speculative HTML parser is not null, then return the result of creating a speculative mock element given given namespace, the tag name of the given token, and the attributes of the given token.
794
-
// FIXME: 2. Otherwise, optionally create a speculative mock element given given namespace, the tag name of the given token, and the attributes of the given token.
793
+
// FIXME: 1. If the active speculative HTML parser is not null, then return the result of creating a speculative mock element given given namespace, token's tag name, and token's attributes.
794
+
// FIXME: 2. Otherwise, optionally create a speculative mock element given given namespace, token's tag name, and token's attributes.
795
795
796
-
// 3. Let document be intended parent's node document.
796
+
// 3. Let document be intendedParent's node document.
// 4. Let local name be the tag name of the token.
799
+
// 4. Let localName be token's tag name.
800
800
autoconst& local_name = token.tag_name();
801
801
802
-
// 5. Let is be the value of the "is" attribute in the given token, if such an attribute exists, or null otherwise.
802
+
// 5. Let is be the value of the "is" attribute in token, if such an attribute exists; otherwise null.
803
803
auto is_value = token.attribute(AttributeNames::is);
804
804
805
-
// 6. Let definition be the result of looking up a custom element definition given document, given namespace, local name, and is.
805
+
// FIXME: 6. Let registry be the result of looking up a custom element registry given intendedParent.
806
+
// 7. Let definition be the result of looking up a custom element definition given registry, namespace, localName, and is.
806
807
auto definition = document->lookup_custom_element_definition(namespace_, local_name, is_value);
807
808
808
-
//7. Let willExecuteScript be true if definition is non-null and the parser was not created as part of the HTML fragment parsing algorithm; otherwise false.
809
+
//8. Let willExecuteScript be true if definition is non-null and the parser was not created as part of the HTML fragment parsing algorithm; otherwise false.
// 1. Let queue be the result of popping from document's relevant agent's custom element reactions stack. (This will be the same element queue as was pushed above.)
864
+
// 1. Let queue be the result of popping from document's relevant agent's custom element reactions stack.
865
+
// (This will be the same element queue as was pushed above.)
863
866
auto queue = relevant_similar_origin_window_agent(document).custom_element_reactions_stack.element_queue_stack.take_last();
// FIXME: 12. If element has an xmlns attribute in the XMLNS namespace whose value is not exactly the same as the element's namespace, that is a parse error.
875
+
// FIXME: 13. If element has an xmlns attribute in the XMLNS namespace whose value is not exactly the same as the element's namespace, that is a parse error.
873
876
// Similarly, if element has an xmlns:xlink attribute in the XMLNS namespace whose value is not the XLink Namespace, that is a parse error.
874
877
875
-
// FIXME: 13. If element is a resettable element and not a form-associated custom element, then invoke its reset algorithm. (This initializes the element's value and checkedness based on the element's attributes.)
878
+
// FIXME: 14. If element is a resettable element and not a form-associated custom element, then invoke its reset algorithm. (This initializes the element's value and checkedness based on the element's attributes.)
876
879
877
-
// 14. If element is a form-associated element and not a form-associated custom element, the form element pointer is not null, there is no template element on the stack of open elements,
878
-
// element is either not listed or doesn't have a form attribute, and the intended parent is in the same tree as the element pointed to by the form element pointer,
879
-
// then associate element with the form element pointed to by the form element pointer and set element's parser inserted flag.
880
+
// 15. If element is a form-associated element and not a form-associated custom element, the form element pointer
881
+
// is not null, there is no template element on the stack of open elements, element is either not listed or
882
+
// doesn't have a form attribute, and the intendedParent is in the same tree as the element pointed to by the
883
+
// form element pointer, then associate element with the form element pointed to by the form element pointer
884
+
// and set element's parser inserted flag.
880
885
// FIXME: Check if the element is not a form-associated custom element.
881
886
if (auto* form_associated_element = as_if<FormAssociatedElement>(*element)) {
0 commit comments