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:
dbaron%dbaron.org
2006-04-19 19:07:41 +00:00
parent 377e2c4373
commit fa216cb9f3
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}
}