summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/HashChangeEvent.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/HashChangeEvent.idl')
-rw-r--r--Source/WebCore/dom/HashChangeEvent.idl22
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/WebCore/dom/HashChangeEvent.idl b/Source/WebCore/dom/HashChangeEvent.idl
index 8674ffcd9..e72ff8d35 100644
--- a/Source/WebCore/dom/HashChangeEvent.idl
+++ b/Source/WebCore/dom/HashChangeEvent.idl
@@ -19,14 +19,20 @@
// Introduced in http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-hashchange
[
- ConstructorTemplate=Event,
+ Constructor(DOMString type, optional HashChangeEventInit eventInitDict),
] interface HashChangeEvent : Event {
- void initHashChangeEvent([Default=Undefined] optional DOMString type,
- [Default=Undefined] optional boolean canBubble,
- [Default=Undefined] optional boolean cancelable,
- [Default=Undefined] optional DOMString oldURL,
- [Default=Undefined] optional DOMString newURL);
- [InitializedByEventConstructor] readonly attribute DOMString oldURL;
- [InitializedByEventConstructor] readonly attribute DOMString newURL;
+ // FIXME: Using "undefined" as default parameter value is wrong.
+ void initHashChangeEvent(optional DOMString type = "undefined",
+ optional boolean canBubble = false,
+ optional boolean cancelable = false,
+ optional USVString oldURL = "undefined",
+ optional USVString newURL = "undefined");
+
+ readonly attribute USVString oldURL;
+ readonly attribute USVString newURL;
};
+dictionary HashChangeEventInit : EventInit {
+ USVString oldURL = "";
+ USVString newURL = "";
+};