summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-25 09:05:21 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:52 -0500
commit0cea94242a555b7a8a2d956412da809a514814f7 (patch)
treec7522df90cbadd242936308a2818d7bd240b613f /dom/base/CustomElementRegistry.cpp
parentd84323905b149cda8063ef73cd92e852f36c96c9 (diff)
downloadUXP-0cea94242a555b7a8a2d956412da809a514814f7.tar
UXP-0cea94242a555b7a8a2d956412da809a514814f7.tar.gz
UXP-0cea94242a555b7a8a2d956412da809a514814f7.tar.lz
UXP-0cea94242a555b7a8a2d956412da809a514814f7.tar.xz
UXP-0cea94242a555b7a8a2d956412da809a514814f7.zip
Bug 1430034 - Fix attributeChangedCallback isn't fired with correct newValue when the attribute value is an empty string;
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/CustomElementRegistry.cpp')
-rw-r--r--dom/base/CustomElementRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
index 4fb18381f..47601aabb 100644
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -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,