Removing TABLE SUMMARY from browser tooltips. Bug #45735. r=ben, a=brendan

This commit is contained in:
roc+%cs.cmu.edu 2000-08-03 13:42:52 +00:00
Родитель b1bd9abdca
Коммит 2cd76bf7b7
1 изменённых файлов: 2 добавлений и 7 удалений

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

@ -1659,21 +1659,16 @@ function FillInHTMLTooltip ( tipElement )
var titleText = "";
var XLinkTitleText = "";
var summaryText = "";
while ( !titleText && !summaryText && !XLinkTitleText && tipElement ) {
while ( !titleText && !XLinkTitleText && tipElement ) {
if ( tipElement.nodeType == 1 ) {
titleText = tipElement.getAttributeNS(HTMLNS, "title");
XLinkTitleText = tipElement.getAttributeNS(XLinkNS, "title");
if ( (tipElement.namespaceURI == "" || tipElement.namespaceURI == HTMLNS)
&& tipElement.tagName.toLowerCase() == "table" ) {
summaryText = tipElement.getAttributeNS(HTMLNS, "summary");
}
}
tipElement = tipElement.parentNode;
}
var texts = [ titleText, summaryText, XLinkTitleText ];
var texts = [ titleText, XLinkTitleText ];
for (var i = 0; i < texts.length; i++) {
var t = texts[i];