To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 5372
5371  |  5373
Subject: 
Re: MSIE5 better but still buggy (was: Re: Why MSIE sucks for the HTML writer)
Newsgroups: 
lugnet.admin.general
Date: 
Mon, 20 Mar 2000 19:31:34 GMT
Viewed: 
1490 times
  
In lugnet.admin.general, Asher Kobin writes:
Yet another totally braindead MSIE problem is multiple-select lists with
the <SELECT> tag.  If none of the <OPTION> items within a <SELECT> have
the SELECTED attribute, MSIE is its infinite wisdom decides to auto-select
the first item for you!  Wonderful.  So you have to add an empty foofoo
item at the top if you're serving pages to an MSIE browser, if you don't
want anything selected by default.  (Perhaps MS has fixed this bug by now.)

Still broken in MSIE5!  Bummer.

Why do you consider this difference in behavior between the two browsers to
be "broken" in IE5?  Obviously, I can make the reverse argument and say it
is "broken" in Nav.  Neither browser is going to change this behaviour, it
will break compatibiliy.

Well, maybe you're right about that after all.  According to section 8.1.3 of
RFC1866[1] (HTML 2.0), "[t]he initial state has the first option selected,
unless a SELECTED attribute is present on any of the <OPTION> elements."
(This is completely bizarre!)

The HTML 4.0 spec redefines this to be undefined (it's up to the application
whether or not to select the first item in this case).

Thus, it appears that Netscape _went against_ the HTML 2.0 spec when it
implemented the <SELECT> tag, and that Microsoft _adhered_ to the HTML 2.0
spec when it implemented the <SELECT> tag.  We could say then that it's
actually the spec itself which is broken, since it provides no way to
guarantee that a multiple-select list box comes up with exactly zero items
preselected.  To its credit, in violating the HTML 2.0 spec, Netscape made
the <SELECT> tag work better than it was intended to.  It is unfortunate
(IMHO) that Microsoft did not also violate the spec.  If they had, then
the HTML 4.0 might now define <SELECT> in a more versatile way than the
crippled way that it does now.  Does MSIE give any other way (though perhaps
some other ATTRIBUTE) whereby an HTML author can send a multiple-select list
and guarantee that _zero_ of the list items are preselected?  That would be
a nice workaround to the shortcoming in the spec.

--Todd

[1] http://www.ietf.org/rfc/rfc1866.txt



Message has 2 Replies:
  Re: MSIE5 better but still buggy (was: Re: Why MSIE sucks for the HTML writer)
 
(...) Ok, well I couldn't stop from smiling when I read your post. It sounds to me that Netscape did a little "embracing and extending" of its own in this area :) (...) I don't understand your question... (25 years ago, 20-Mar-00, to lugnet.admin.general)
  Re: MSIE5 better but still buggy (was: Re: Why MSIE sucks for the HTML writer)
 
(...) Ok, just so I understand this, you're saying that MS, a company that is almost universally condemned for _not_ adhering to standards, should have done what others (and maybe you) have screamed about all along - that is violate those standards? (...) (25 years ago, 20-Mar-00, to lugnet.admin.general)

Message is in Reply To:
  Re: MSIE5 better but still buggy (was: Re: Why MSIE sucks for the HTML writer)
 
(...) Why do you consider this difference in behavior between the two browsers to be "broken" in IE5? Obviously, I can make the reverse argument and say it is "broken" in Nav. Neither browser is going to change this behaviour, it will break (...) (25 years ago, 20-Mar-00, to lugnet.admin.general)

131 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR