summaryrefslogtreecommitdiffstats
path: root/toolkit/content/customElements.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/content/customElements.js')
-rw-r--r--toolkit/content/customElements.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/toolkit/content/customElements.js b/toolkit/content/customElements.js
index b0a8f33fe6..ef58963a02 100644
--- a/toolkit/content/customElements.js
+++ b/toolkit/content/customElements.js
@@ -732,7 +732,7 @@
}
get label() {
- return this.getAttribute("label");
+ return this.getAttribute("label") || "";
}
set image(val) {
@@ -762,9 +762,7 @@
}
get accessKey() {
- return this.labelElement
- ? this.labelElement.accessKey
- : this.getAttribute("accesskey");
+ return this.labelElement?.accessKey || this.getAttribute("accesskey");
}
};
MozElements.BaseTextMixin = BaseTextMixin;