Index: core/events/HashChangeEvent.idl |
diff --git a/core/events/HashChangeEvent.idl b/core/events/HashChangeEvent.idl |
index e5101b8d99186dc47978d81a5b0c5457a256b342..663fd57d85d10e5a357b9fc23db4e6b42ea16b52 100644 |
--- a/core/events/HashChangeEvent.idl |
+++ b/core/events/HashChangeEvent.idl |
@@ -17,16 +17,20 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-// Introduced in http://www.whatwg.org/specs/web-apps/current-work/multiframe/History.html#event-hashchange |
+// https://html.spec.whatwg.org/multipage/browsers.html#the-hashchangeevent-interface |
+ |
[ |
- EventConstructor, |
+ Constructor(DOMString type, optional HashChangeEventInit eventInitDict), |
+ // TODO(philipj): Exposed=(Window,Worker) |
] 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; |
-}; |
+ readonly attribute DOMString oldURL; |
+ readonly attribute DOMString newURL; |
+ // TODO(philipj): initHashChangeEvent() has been removed from the spec: |
+ // https://html5.org/r/6551 |
+ [Measure] 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); |
+}; |