Use new ToString method on selection

This commit is contained in:
akkana%netscape.com 1999-09-21 01:42:41 +00:00
parent 191b853be7
commit d57e4f513a

View File

@ -1026,17 +1026,15 @@ function EditorTestSelection()
{
dump("Testing selection\n");
var selection = editorShell.editorSelection;
if (selection)
if (!selection)
{
dump("Got selection\n");
var firstRange = selection.getRangeAt(0);
if (firstRange)
{
dump("Range contains \"");
dump(firstRange.toString() + "\"\n");
}
dump("No selection!\n");
return;
}
dump("Selection contains:\n");
dump(selection.toString() + "\n");
var output;
dump("\n====== Selection as XIF =======================\n");