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

This commit is contained in:
dbaron%dbaron.org 2006-09-14 06:09:47 +00:00
Родитель 396f86ad95
Коммит 04ed46bf5d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -266,7 +266,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;
}
}