Fixed getting all headings for list, b=103855, r=brade, sr=dveditz

This commit is contained in:
cmanske%netscape.com 2001-11-30 00:01:45 +00:00
Родитель 7f55e4ce48
Коммит 6c6a124834
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -281,9 +281,9 @@ function FillListboxes()
for (var j = 1; j <= 6; j++)
{
var headingList = editorShell.editorDocument.getElementsByTagName("h"+String(j));
if (headingList.length > 0)
for (var k = 0; k < headingList.length; k++)
{
var heading = headingList.item(0);
var heading = headingList.item(k);
// Skip headings that already have a named anchor as their first child
// (this may miss nearby anchors, but at least we don't insert another