зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1489437 - HTML parser should invoke custom element's callbacks before appending child nodes to it; r=smaug
Per step 3.3 of https://html.spec.whatwg.org/multipage/parsing.html#insert-a-foreign-element Differential Revision: https://phabricator.services.mozilla.com/D5269 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f4a90435ef
Коммит
045c48d80f
|
@ -178,6 +178,8 @@ nsHtml5TreeOperation::Append(nsIContent* aNode,
|
|||
MOZ_ASSERT(aBuilder->IsInDocUpdate());
|
||||
nsresult rv = NS_OK;
|
||||
nsHtml5OtherDocUpdate update(aParent->OwnerDoc(), aBuilder->GetDocument());
|
||||
dom::AutoCEReaction autoCEReaction(
|
||||
aParent->OwnerDoc()->GetDocGroup()->CustomElementReactionsStack(), nullptr);
|
||||
rv = aParent->AppendChildTo(aNode, false);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
aNode->SetParserHasNotified();
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[parser-sets-attributes-and-children.html]
|
||||
[HTML parser should call connectedCallback before appending child nodes.]
|
||||
expected: FAIL
|
||||
|
Загрузка…
Ссылка в новой задаче