Work around possible deficiency in HTML parser by replacing runs of whitespace with a single space in the title attribute. b=67127 Patch by Steuard Jensen <steuard+moz@slimy.com>. r=bryner sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@194688 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2529,7 +2529,8 @@ function FillInHTMLTooltip(tipElement)
|
||||
for (var i = 0; i < texts.length; ++i) {
|
||||
var t = texts[i];
|
||||
if (t && t.search(/\S/) >= 0) {
|
||||
tipNode.setAttribute("label", t);
|
||||
// XXX - Short-term fix to bug 67127: collapse whitespace here
|
||||
tipNode.setAttribute("label", t.replace(/\s+/g, " ") );
|
||||
retVal = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user