Bug 1334051 - Part 1: Include namespace in attributeChangedCallback.

Per spec [1], we should include namesapce in attributeChangedCallback argurment list.
[1] https://html.spec.whatwg.org/multipage/custom-elements.html#concept-upgrade-an-element, step 3

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-05 11:25:37 -05:00 committed by Roy Tam
commit 4408e19e96
4 changed files with 15 additions and 4 deletions

View file

@ -52,7 +52,7 @@ CustomElementCallback::Call()
break;
case nsIDocument::eAttributeChanged:
static_cast<LifecycleAttributeChangedCallback *>(mCallback.get())->Call(mThisObject,
mArgs.name, mArgs.oldValue, mArgs.newValue, rv);
mArgs.name, mArgs.oldValue, mArgs.newValue, mArgs.namespaceURI, rv);
break;
}
}