W3C home > Mailing lists > Public > www-style@w3.org > August 2001

Re: Behavioral Extensions to CSS

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 02 Aug 2001 06:54:26 +0200
To: "Jeffrey Yasskin" <jyasskin@hotmail.com>
Cc: www-style@w3.org
Message-ID: <j5lhmtkfkkggjjhnqghh8tvipemc5aie93@4ax.com>
* Jeffrey Yasskin wrote:
>>[BECSS]
>It makes it easier to attach code in an extensible way to HTML and XML 
>elements.

HTML has event handlers, XHTML gets a generic events model, for XML
there is the DOM Level 2 Events module.

>As the world moves to object orientation, HTML scripting is still 
>function-based.

Is it? I thought it was based on the HTML document _object_ model? Well,
if authors don't use object-orieted features ECMA-262 provides to them,
that's nothing CSS could fix.

>A few days ago someone complained that BECSS gives code writers yet one more 
>place to hide code. Have you seen Dreamweaver script lately? And that's 
>contained in the current page. If someone wants to hide code, they can do 
>it, and if someone wants to find it, they can do it. Most people only care 
>if it works, and BECSS makes that more likely.

Does it? User agent without CSS support won't be able to make use of
that and scripting fails completly.

>So, is BECSS dead? And why don't you like it?

CSS is meant to influence the _presentation_ of documents. It must not
contain logical semantics as it should not contain any scripting
information. Mixing scripting with presentation appears to me like
mixing logic and structe with presentation as in HTML 3.2. What's wrong
with

  /* some script */
  ...addEventListener("submit", submitListener, 0);
  ...submitListener::handle_event( evt )
  {
    /* do something */
  }
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Thursday, 2 August 2001 00:55:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT