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 24184 - References undefined type EventHandler
Summary: References undefined type EventHandler
Status: REOPENED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebSocket API (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: contributor
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 02:07 UTC by Glenn Adams
Modified: 2014-01-02 23:09 UTC (History)
4 users (show)

See Also:


Attachments

Description Glenn Adams 2014-01-02 02:07:27 UTC
The definition of interface WebSocket refers four times to the undefined type EventHandler. The specification must include a definition or a reference to a definition of EventHandler.
Comment 1 Boris Zbarsky 2014-01-02 06:39:01 UTC
EventHandler is defined at http://www.w3.org/html/wg/drafts/html/master/webappapis.html#eventhandler and equivalent in the WHATWG HTML spec.

I agree that the instances of EventHandler in the IDL in websocket API should link to that definition.  However, note that http://dev.w3.org/html5/websockets/#dependencies explicitly notes that a number of fundamental concepts from the HTML specification are used in this one, and EventHandler is one of those.  Just like EventTarget is actually coming from the DOM specification here.
Comment 2 Glenn Adams 2014-01-02 13:23:51 UTC
(In reply to Boris Zbarsky from comment #1)
> EventHandler is defined at
> http://www.w3.org/html/wg/drafts/html/master/webappapis.html#eventhandler
> and equivalent in the WHATWG HTML spec.

I know that. But that definition is not referenced.

> 
> I agree that the instances of EventHandler in the IDL in websocket API
> should link to that definition.  However, note that
> http://dev.w3.org/html5/websockets/#dependencies explicitly notes that a
> number of fundamental concepts from the HTML specification are used in this
> one, and EventHandler is one of those.  Just like EventTarget is actually
> coming from the DOM specification here.

Any externally defined type needs to be explicitly linked or cited, not included in a general "fundamental concepts" clause.
Comment 3 Ian 'Hixie' Hickson 2014-01-02 20:24:59 UTC
Just use http://www.whatwg.org/html#network

The W3C version is only useful for patent policy purposes and is not guaranteed to have fully working cross-references, etc.
Comment 4 Glenn Adams 2014-01-02 20:33:01 UTC
(In reply to Ian 'Hixie' Hickson from comment #3)
> Just use http://www.whatwg.org/html#network
> 
> The W3C version is only useful for patent policy purposes and is not
> guaranteed to have fully working cross-references, etc.

The W3C version is the only one that matters, and needs fixed. Please don't re-close until fixed or I will just re-open.
Comment 5 Ian 'Hixie' Hickson 2014-01-02 23:09:17 UTC
Taking off my radar.