Re: background-Image Problem with Netscape Communicator 4.7

Todd Fahrner wrote:

> At 5:38 PM -0500 12/7/99, Thomas Ashe wrote:
> >How can a programmer effectively create element IDs that are readable, yet
> >fit all the specs? OK, I guess you could use syntax like that of
> >Objective-C, such as elementName, but many programmers are used to using
> >underscore as a valid character in a variable/object name, and not allowing
> >it seems like a flaw IMO.
>
> I follow your reasoning. I am not an apologist for this syntactical
> detail. I have merely pointed it out. It's one of the few things
> Netscape 4.x does right.
>
> >Is there something I missing somewhere that would enlighten me to why this
> >is an illegal character?
>
> Probably Bert Bos knows. All I can surmise is that there was some
> determination to preserve as many characters as practical for
> possible future use. I guess this one cut a little close.
>
> >P.S. in addition to IE, Mozilla M11 accepts names with an underscore as a
> >valid selector.
>
> Until the spec changes, it's a bug.

I brought this up as either a CSS2 errata item or a CSS3 extension (don't
remember which) but underscores should be considered legal in identifiers
shortly. With that in mind, Mozilla already supports them.

Peter

>
>
> --
> Todd Fahrner

Received on Wednesday, 8 December 1999 00:32:01 UTC