* John Delacour wrote:
>A couple of weeks ago, having discovered some time ago that I could 
>include spaces in ids and get no complaints from browsers, I went to 
>validate a file at W3 and discovered that this is not legal and I 
>must separate words with underlines rather than spaces.  No great 
>inconvenience but I'm not sure why spaces in ids should be frowned 
>upon.  Can anybody exaplain?

It is sometimes useful to specify lists of IDs. To do that, you'll
generally need a separator character. It follows that either you'd
have to disallow this separator character in IDs, or you have to
come up with some escaping mechanism for it. Escaping rules tend to
make parsing harder and are often misunderstood, so it's usually
better to use a separator character. White space is generally a good
choice for that, because considering white space part of identifiers
often conflicts with other assumptions about white space, e.g.

  Is id=' x ' the same as id='x'?
  Is id='x y' the same as id='x  y'?
  Is id='x      y' the same as id='x y'?

These questions immediately go away if you disallow white space, and
you are then free to use white space for other purpose, as above.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to