mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Bug 1430034 - Fix attributeChangedCallback isn't fired with correct newValue when the attribute value is an empty string;
Tag UXP Issue #1344
This commit is contained in:
parent
a6339bef90
commit
2cdd48f819
2 changed files with 32 additions and 1 deletions
|
|
@ -909,7 +909,7 @@ CustomElementRegistry::Upgrade(Element* aElement,
|
|||
LifecycleCallbackArgs args = {
|
||||
nsDependentAtomString(attrName),
|
||||
NullString(),
|
||||
(attrValue.IsEmpty() ? NullString() : attrValue),
|
||||
attrValue,
|
||||
(namespaceURI.IsEmpty() ? NullString() : namespaceURI)
|
||||
};
|
||||
nsContentUtils::EnqueueLifecycleCallback(nsIDocument::eAttributeChanged,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue