W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: [html5] Event handler DOM attributes

From: Jens Meiert <jens@meiert.com>
Date: Fri, 28 Aug 2009 18:16:17 +0200
Message-ID: <9fbcac550908280916pd20ff5dw78ed868bbf441c9a@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: public-html@w3.org
> The presentational markup wasn't included in HTML5 because it is
> unnecessarily media-dependent. Event handlers don't seem to have this
> problem. I don't think it makes sense to force authors to separate their
> usir interface logic from their user interface semantics. On the contrary,
> it seems preferable to keep them together.

For authoring convenience, maybe. For maintenance, no.

The problem is the same with presentational markup. If you hardwire
presentation into your documents, you very likely need to update
documents to change presentation. If you hardwire behavior (event
handling) into documents, you very likely need to update documents to
change behavior. Given that usually you’re dealing with more documents
(this includes dynamic templates) than style sheets or scripts, these
changes are more expensive.

I trust your and other Working Group members’ judgment however. I
wouldn’t expect anything but the underlying problem and the goal of
orthogonality to continue to be something for which “best practices”
need to do the dirty work.

Jens Meiert
Received on Friday, 28 August 2009 16:17:16 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:50 UTC