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 7769 - event handler IDL attributes and content attributes should reflect each other
Summary: event handler IDL attributes and content attributes should reflect each other
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 09:39 UTC by Anne
Modified: 2010-10-04 14:57 UTC (History)
6 users (show)

See Also:


Attachments

Description Anne 2009-09-30 09:39:21 UTC
In both Firefox and Internet Explorer setting an event handler IDL attribute also sets the content attribute so setting an event handler IDL attribute and then removing the corresponding content attribute will remove the corresponding event handler.

Opera thinks this makes sense and would like to align. Can we align the specification too?

(Since this is a follow up to bug 7626 I added the same people to the cc list.)
Comment 1 Ian 'Hixie' Hickson 2009-09-30 10:22:53 UTC
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/249 suggests that Firefox doesn't do what you describe.

In general, as discussed on IRC, this sounds like a big can of worms with a lot of edge cases. I think this needs a much more clear proposal.
Comment 2 Hallvord R. M. Steen 2009-09-30 11:37:22 UTC
I'm a bit confused Ian - wouldn't this:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/251
be a better test for what the bug is about? :)

I agree that browsers don't currently sync this. From a QA/web author perspective we think it would seem more consistent if they did. (Have not discussed this in-depth with implementors)
Comment 3 Anne 2009-09-30 12:02:45 UTC
Sorry, my assertion was indeed based on inaccurate tests.

While I agree with Hallvord that it would be nicer I don't think it's worth it to introduce this behavior.