Re: Characters in attribute values

On Thu, 14 Aug 1997, Holger Wahlen wrote:

> After my question about a passage of the SGML declaration in
> the HTML 4 draft ...
> 
> | ----------quote----------
> |     NAMING   LCNMSTRT ""
> |              UCNMSTRT ""
> |              LCNMCHAR ".-"    -- ?include "~/_" for URLs? --
> |              UCNMCHAR ".-"
> | ----------/quote----------

> I'm thinking of values for attributes like HREF, SRC and so
> on. With the present declaration, it's valid to have
> 	<A HREF=file.html>
> instead of
> 	<A HREF="file.html">,
> but the quotation marks can't be left out in the (frequent)
> case that there's a directory change involved:
> 	<A HREF="subdir/index.html">
> has to remain that way. No big deal, but it's quite easy to
> forget the closing quotation mark, especially for longer
> paths.

The problem is that the more you add, the more difficult it
will be to remember which are allowed and which not. URLs
can contain quite a few special characters (but not others),
and so on, and hardly anybody knows them all.

Regards,	Martin.

Received on Monday, 18 August 1997 09:31:30 UTC