W3C home > Mailing lists > Public > site-comments@w3.org > December 2002

<label /> causing problem in IE5.5/6

From: Patrick Benny <chipple@didamail.com>
Date: Thu, 26 Dec 2002 23:51:35 -0500
Message-ID: <410-220021252745135218@didamail.com>
To: site-comments@w3.org


First of all, congratulations for the recent redesign!

I've noticed a bug which occurs on Internet Explorer 5.5 and 6.0 for PC
(and possibly on other versions/platforms) because of the label element not
having a separate closing tag.

The two following label elements appear on the W3C home page as part of the
search form.
<label for="inputField" accesskey="E" />
<label for="goButton" accesskey="G" />

IE6 seems to thinks that these are open tags which are never closed. This
results in submitting the search form (as if the "Go" button would have
been clicked) accidentally whenever any non-link part of the page following
the "Go" button is clicked.
Try clicking on the right pane (below the form) and also in the copyright
text at the bottom of the page. This results in accidentally submitting the

The following work-around causes Internet Explorer 6 to behave as expected:
<label for="inputField" accesskey="E"></label>
<label for="goButton" accesskey="G"></label>

Best regards,

Received on Thursday, 26 December 2002 23:53:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:15:32 UTC