diff options
Diffstat (limited to 'devtools/client/inspector/markup/views/element-editor.js')
-rw-r--r-- | devtools/client/inspector/markup/views/element-editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/client/inspector/markup/views/element-editor.js b/devtools/client/inspector/markup/views/element-editor.js index f538c2f6a9..c7e47c0a7c 100644 --- a/devtools/client/inspector/markup/views/element-editor.js +++ b/devtools/client/inspector/markup/views/element-editor.js @@ -878,7 +878,7 @@ ElementEditor.prototype = { // Create links in the attribute value, and truncate long attribute values if needed. for (const token of parsedLinksData) { - if (token.type === "string") { + if (token.type === "string" || token.value?.trim() === "") { attributeValueEl.appendChild( this.doc.createTextNode(this._truncateAttributeValue(token.value)) ); |