mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Use new ToString method on selection
This commit is contained in:
parent
191b853be7
commit
d57e4f513a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user