Re: [jslint] ID's starting with numeric character not flagged as invalid
- very good point
I think this kind of thing deserve an error more than a simple
Le 28 janv. 10 � 19:25, David Rueter a �crit :
> I noticed that JSLint does not detect a problem with HTML ID[Non-text portions of this message have been removed]
> attributes that
> begin with a numeral.
> I ran into a problem the other day where YUI3 was doing something
> strange. It turned out that YUI3 gets confused when the leading
> of a node ID begins with a numeral.
> Of course the HTML spec says that the first character of an ID must
> be a
> letter A-Z. it was my fault for not remembering this when I chose to
> use a
> GUID as the ID. But this was especially confusing since it would fail
> randomly (i.e. when the GUID began with a letter A-F all was fine,
> but a 0-9
> would fail).
> Shouldn't JSLint throw a warning if the HTML ID begins with a numeral?
> David Rueter
> [Non-text portions of this message have been removed]