Message from discussion
Is </OPTION> optional?
Received: by 10.204.141.4 with SMTP id k4mr3271932bku.6.1335997965765;
Wed, 02 May 2012 15:32:45 -0700 (PDT)
Path: h15ni191784bkw.0!nntp.google.com!news2.google.com!feed-C.news.volia.net!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!.POSTED!dorayme
From: dorayme <dora...@optusnet.com.au>
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: Is </OPTION> optional?
Date: Thu, 03 May 2012 08:32:42 +1000
Organization: albasani.net
Lines: 44
Message-ID: <dorayme-6372AA.08324203052012@news.albasani.net>
References: <j6k2q79ihed6srqhqvkp4c7copob4lmgfv@4ax.com> <jnrmsj$n4i$1@dont-email.me>
Mime-Version: 1.0
X-Trace: news.albasani.net XsolOygLT6i4UtMhQCNsZm4tCQpsgdDIFQxqIQOuti7K0Q/UIWyLtLlCqAbukGD5A+a+yhVGqV0zjyoQEf5FHQ==
NNTP-Posting-Date: Wed, 2 May 2012 22:32:45 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="+XuNatZqUqjYsrmmZNhQg4VvQeWUMxLKTSqRJUYhLyUvkn+6aIjc/N3ZOeUBn8j3MijtpH8xToaq/vqTcAB8h/7gzkoW4HyM7wA3qqsIBCe43bYxaJmLHdQ09x3yzR4j"; mail-complaints-to="ab...@albasani.net"
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:IhNlIItgAb0j5uJEhSaIzdrYPZU=
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
In article <jnrmsj$n4...@dont-email.me>,
"Jonathan N. Little" <lws4...@gmail.com> wrote:
> Swifty wrote:
> > I can't remember where I learned HTML, but I remember that there is no
> > </OPTION> tag in HTML (but browsers don't care if you have them)
> >
I think it was optional even in 3.2 days but I am not surprised at
your memory because the typical examples (you could see them pasted
inside the cabins of horse drawn buggies) are as in
<http://www.w3.org/TR/REC-html32#select>
> > I've discovered that I sometimes get blank entries in my<SELECT>
> > controls, even though none of the<OPTION>'s are blank. This happens
> > with the current Opera browser (and back quite a few releases).
> >
> > The workaround is to add the un-necessary, and possible illegal
> > </OPTION> tags.
>
> It is not illegal, it is optional in HTML 4.01, but required in XHTML. I
> typically put in all optional closing tabs because it fined it makes it
> easier to debug and see my errors...
>
> When in doubt, why not look it up?
>
> http://www.w3.org/TR/html401/index/elements.html
>
> >
> > Presumably this is a problem that I should report to Opera, but I
> > thought I'd check my facts first.
> >
>
> With out the code in question, it is hard to say if there is a bug in
> Opera or *your* markup.
Odd things can happen in quirks mode where browsers make out however.
In such mode, a browser can fail to trigger an implicit close of a
prior element and maybe all sort of other things can happen. So it
would be interesting to see the markup that gives Swifty this problem.
--
dorayme