] interface EventTarget {
// FIXME: first 2 args should be required, but throwing TypeError breaks
// legacy content. http://crbug.com/353484
- void addEventListener([TreatNullAs=NullString] optional DOMString type,
+ void addEventListener(optional DOMString? type,
optional EventListener listener,
optional boolean useCapture);
- void removeEventListener([TreatNullAs=NullString] optional DOMString type,
+ void removeEventListener(optional DOMString? type,
optional EventListener listener,
optional boolean useCapture);
[RaisesException] boolean dispatchEvent(Event event);