зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 81506 (JS error on browser startup). r=glazman@netscape.com, sr=ben@netscape.com.
This commit is contained in:
Родитель
ec608cec13
Коммит
4a0f18a76b
|
@ -134,9 +134,9 @@ function FillInTooltip ( tipElement )
|
|||
{
|
||||
var retVal = false;
|
||||
var textNode = document.getElementById("TOOLTIP-tooltipText");
|
||||
while (textNode.hasChildNodes())
|
||||
textNode.removeChild(textNode.firstChild);
|
||||
if (textNode) {
|
||||
while (textNode.hasChildNodes())
|
||||
textNode.removeChild(textNode.firstChild);
|
||||
var tipText = tipElement.getAttribute("tooltiptext");
|
||||
if (tipText) {
|
||||
var node = document.createTextNode(tipText);
|
||||
|
|
Загрузка…
Ссылка в новой задаче