rem: var headingList = editorShell.editorDocument.getElementsByTagName("h2"); dump(headingList+" Count= "+headingList.length+"\n"); if (headingList.length > 0) { dump("HELLO\n"); var heading = headingList.item(0); 
add: var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) {  NamedAnchorsIndex = 0; AppendStringToListByID(NamedAnchorList,"NamedAnchorsCaption"); for (var i = 0; i < NamedAnchorCount; i++) {  AppendStringToList(NamedAnchorList," "+NamedAnchorNodeList.item(i).name); } } var firstHeading = true; for (var j = 1; j <= 6; j++) { var headingList = editorShell.editorDocument.getElementsByTagName("h"+String(j)); dump(headingList+" Count= "+headingList.length+"\n"); if (headingList.length > 0) { dump("HELLO\n"); var heading = headingList.item(0); 
context: function FillNamedAnchorList(){  NamedAnchorNodeList = editorShell.editorDocument.anchors;  var headingList = editorShell.editorDocument.getElementsByTagName("h2");  dump(headingList+" Count= "+headingList.length+"\n");  if (headingList.length > 0) {    dump("HELLO\n");    var heading = headingList.item(0);    var range = editorShell.editorDocument.createRange();    range.setStart(heading,0);    var lastChildIndex = heading.childNodes.length;    range.setEnd(heading,lastChildIndex);    var text = range.toString();    dump("Range:"+range+" LastChildIndex = "+lastChildIndex+"\nText: "+text+"\n");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/711c0f72c9655c2558d43bb716847f1a294b8372/EdLinkProps.js/clean/editor/ui/dialogs/content/EdLinkProps.js