W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] SGML declaration

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 17 Aug 2004 16:51:29 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0408171643400.16813@dhalsim.dreamhost.com>
On Thu, 15 Jul 2004, fantasai wrote:
> 
> Having looked a bit more carefully at the SGML declaration, I hafta say 
> I definitely have plans to make changes. I can make brackets valid in 
> IDs for you, isn't that just *spiffy*? :D (HTML4 itself adds : and _ to 
> the list, in case you were wondering.)
> 
> As for SHORTTAG, it's not going anywhere. It's needed for dropping 
> quotes and default values and attribute minimization.

|                  LCNMCHAR ".-_:[]"
|                  UCNMCHAR ".-_:[]"

Cool. How about just making any valid string a valid ID? I never 
understood why IDs were limited to only certain characters. 
Implementations seem pretty loose about this anyway. (Why is id="1" not 
valid, e.g.?)

|                  NET      "`"     -- change from "/" to avoid mixup 
|                                      with XML --

If NETENABL is NO (as it is in your decl now), do we need to change this? 
If we do need to change this, any chance we could make it a less arbitrary 
character, such as &#x0000; ?

|     STARTTAG
|       EMPTY    NO  -- outlaws "<>" --

Good good.

|       UNCLOSED NO  -- outlaws "<foo" --

We should allow this, it's actually implemented.

|        NETENABL NO  -- outlaws "<p/text<em/more text/ nested/" --

Aww! But I wanted to use this!

|      ENDTAG
|        EMPTY    NO  -- outlaws "</>" --

Pity, but ok. (I actually use this in examples quite a bit, it saves a 
lot of typing. Not that anyone implements it.)

|        UNCLOSED NO  -- outlaws "</foo" --

Again, we should allow this, it's actually implemented.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 17 August 2004 09:51:29 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC