W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: How about a <notice> element?

From: Toby Inkster <tobyink@goddamn.co.uk>
Date: Tue, 20 Aug 2002 19:35:43 +0100
To: www-html@w3.org
Message-Id: <20020820193543.36d8ab58.tobyink@goddamn.co.uk>
On Tue, 20 Aug 2002 19:02:58 +0200
Jonas Jørgensen <jonasj@jonasj.dk> wrote:

| The 'notice' element contains an informational notice, an error message,
| or a warning.

Possible addition to the description:

'As an analogy, while most of XHTML can be thought of as STDOUT, the <notice> element should be thought of as STDERR'.

Attributes, I would suggest, instead of 'type':

'errorlevel' -- takes 1 of 8 values:
     'debug' : extra information, useful for debugging only
     'info'  : an informational notice
     'notice': normal, but significant occurance (the default)
     'warn'  : small error, but can continue without fixing it
     'err'   : small error, must be fixed at some point
     'crit'  : severe error, must be fixed at some point
     'alert' : severe error, must be fixed immediately
     'emerg' : severe error, resulting in a complete failure

(Yes, these levels of error are taken from "man 3 syslog")

These levels can alternatively be specified either by the pnemonics above, or numerically ('debug' = 0, ..., 'emerg' = 7).

It is suggested that user agents allow the option of only showing <notice>s with an errorlevel above a user-defined severity (perhaps through user style sheets, but perhaps through a preferences dialog)

So for instance, the web developer can set his/her browser to display all error messages, including debugging messages, but a typical end user might want to only display error messages of type 'err' or above (all errors with error level 4 to 7). The default should be to display all non-zero errors.

This is maybe a more generalised way of doing it, but maybe everybody thinks that it is horrible. :-)

Toby A Inkster BSc ARCS
PGP:      http://www.goddamn.co.uk/tobyink/node.cgi?id=12
Web Page: http://www.goddamn.co.uk/tobyink/
IM:       AIM:inka80 ICQ:6622880 YIM:tobyink Jabber:tobyink@a-message.de

Now, let's SEND OUT for QUICHE!!

Received on Tuesday, 20 August 2002 14:37:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:00 UTC