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 12774 - onerror discrepencies
Summary: onerror discrepencies
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other All
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 07:48 UTC by Michael[tm] Smith
Modified: 2011-08-16 04:04 UTC (History)
5 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2011-05-25 07:48:36 UTC
public-html-comments posting from: Patrick Mueller <pmuellr@gmail.com>
http://www.w3.org/mid/BANLkTimFxigM8N2OhzEcEH5Ao74Kqq+50Q@mail.gmail.com

I was looking over the onerror bits in
http://dev.w3.org/html5/spec/Overview.html , and noticed that the
sections #event-handler-attributes (6.1.6.1) and #runtime-script-errors
(6.1.3.5) seem to differ:

#event-handler-attributes

* 1st argument is "event"
* 3rd argument is "fileno"

#runtime-script-errors

* 1st argument is a DOMString message
* 3rd argument is a line number

I assume the intention is that the 3rd argument should be a line number and
not "file number" (fileno).  But should it be a DOMString?  Why not a number
type?

For the first argument, calling the argument an "event" (in
#event-handler-attributes)
would kinda indicate to me that it's an event object, not a message.

Perhaps these two sections are talking about different things, which would
be even more confusing, since "onerror" seems to be a bit of a weird beast
in any case.

-- 
Patrick Mueller
http://muellerware.org
Comment 1 Michael[tm] Smith 2011-08-04 05:15:56 UTC
mass-move component to LC1
Comment 2 Ian 'Hixie' Hickson 2011-08-16 04:03:52 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: Fixed the "fileno" typo and corrected the type of the third argument to be "unsigned long". The first argument really is called "event" though, for legacy reasons. It's weird, I agree.
Comment 3 contributor 2011-08-16 04:04:43 UTC
Checked in as WHATWG revision r6468.
Check-in comment: Fix onerror definitions.
http://html5.org/tools/web-apps-tracker?from=6467&to=6468