This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19819 - The last 3 parameters to OnErrorEventHandlerNonNull should be optional
Summary: The last 3 parameters to OnErrorEventHandlerNonNull should be optional
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-01 15:43 UTC by Olli Pettay
Modified: 2013-01-31 00:19 UTC (History)
3 users (show)

See Also:


Attachments

Description Olli Pettay 2012-11-01 15:43:22 UTC
Currently the spec has
callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, DOMString source, unsigned long lineno, unsigned long column);
But in practice the latter 3 params are used only for script errors.
Comment 2 Ian 'Hixie' Hickson 2012-11-01 22:40:27 UTC
Can you elaborate? Wouldn't the last three be undefined if the callback was invoked with just one argument? Or is this just editorial?
Comment 3 Boris Zbarsky 2012-11-02 01:06:05 UTC
Ian, the callback cannot be invoked with just one argument per WebIDL given how the IDL is written for it right now, as far as I can see.  It must be invoked with 4 arguments.
Comment 4 Ian 'Hixie' Hickson 2013-01-31 00:19:02 UTC
r7678