From cf4d389c4e7c31e227821c6536ba84313839e0d4 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 9 Jul 2013 18:29:38 -0400 Subject: [PATCH] Bug 891340 - Make Range.collapse optional and default to false --- .../webapps/DOMCore/tests/approved/test_interfaces.html | 2 +- dom/webidl/Range.webidl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/imptests/webapps/DOMCore/tests/approved/test_interfaces.html b/dom/imptests/webapps/DOMCore/tests/approved/test_interfaces.html index 8d2134f7421f..67123d26651d 100644 --- a/dom/imptests/webapps/DOMCore/tests/approved/test_interfaces.html +++ b/dom/imptests/webapps/DOMCore/tests/approved/test_interfaces.html @@ -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); diff --git a/dom/webidl/Range.webidl b/dom/webidl/Range.webidl index 257b36dbdcab..6f540423f647 100644 --- a/dom/webidl/Range.webidl +++ b/dom/webidl/Range.webidl @@ -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]