Bug 891340 - Make Range.collapse optional and default to false

This commit is contained in:
Anne van Kesteren 2013-07-09 18:29:38 -04:00
parent b1ea45059a
commit cf4d389c4e
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ interface Range {
void setStartAfter(Node refNode);
void setEndBefore(Node refNode);
void setEndAfter(Node refNode);
void collapse(boolean toStart);
void collapse(optional boolean toStart = false);
void selectNode(Node refNode);
void selectNodeContents(Node refNode);

View File

@ -38,7 +38,7 @@ interface Range {
void setEndBefore(Node refNode);
[Throws]
void setEndAfter(Node refNode);
void collapse(boolean toStart);
void collapse(optional boolean toStart = false);
[Throws]
void selectNode(Node refNode);
[Throws]