From 6c6a1248344e88b9aaaec8bb33e57297f8d577fd Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Fri, 30 Nov 2001 00:01:45 +0000 Subject: [PATCH] Fixed getting all headings for list, b=103855, r=brade, sr=dveditz --- editor/ui/dialogs/content/EdLinkProps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/ui/dialogs/content/EdLinkProps.js b/editor/ui/dialogs/content/EdLinkProps.js index 27339c8b732..d2d3a9559fa 100644 --- a/editor/ui/dialogs/content/EdLinkProps.js +++ b/editor/ui/dialogs/content/EdLinkProps.js @@ -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