Closed
Bug 14887
Opened 25 years ago
Closed 21 years ago
bugzilla should use <label> tag in forms
Categories
(Bugzilla :: User Interface, enhancement, P2)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: michael.j.lowe, Assigned: jwbaker)
References
Details
(Keywords: access)
Attachments
(1 file, 8 obsolete files)
7.56 KB,
patch
|
gerv
:
review+
|
Details | Diff | Splinter Review |
Should put <label></label> tags around all checkbox and radio button
control + labels pairs, so it is possible to click on a control label to select
the control. eg.
<label><input type=checkbox>Here is a control label</label>
Comment 1•25 years ago
|
||
What browsers support this? Communicator 4.61 on Linux doesn't seem to...
Erm... Mozilla! (Some of us do actually use it some of the time. It works :-)
Comment 3•25 years ago
|
||
Well, fine and good. But I don't use it yet, and I'm not going to start just so
that I can fix this bug, and I'm not going to try and fix this bug without being
able to test my fixes.
So, even though you guys have voted this bug up real high, I won't work on it
now. But I'll be happy to look over any patches you want to submit!
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 4•25 years ago
|
||
Changing description to be more clear
Summary: HTML form controls → bugzilla should use <label> tag in forms
Comment 5•25 years ago
|
||
tara@tequilarista.org is the new owner of Bugzilla and Bonsai. (For details,
see my posting in netscape.public.mozilla.webtools,
news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
Status: ASSIGNED → NEW
Comment 6•24 years ago
|
||
I find this bug important and I am willing to take it on. Assigning to self.
Status: NEW → ASSIGNED
Comment 7•24 years ago
|
||
Since there was question of it further up in the comments here, yes, this is
defined in the HTML 4.01 specification.
http://www.w3.org/TR/html401/interact/forms.html#h-17.9
So I'd say go ahead and do it.
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Somehow, I assaigned this bug to someone else. Reassigning to self.
Assignee: tara → zach
Status: ASSIGNED → NEW
Comment 10•24 years ago
|
||
again! Bugzilla now is setting this to new and filling my email with whiney
notes. I talked to baloo about this yesterday in #mozwebtools, the patch I
posted isn't going to work on netscape for linux, but I might be able to add
some JS to do browser detection (actully, I wouldn't need JS, I could use
cgi (wow, what a thought) and only show the <label> tags on mozilla.
I won't be able to work on this now, but I might have some time in a few
weeks, so I'll accept the bug since it is clearly something important to the
people who voted it up to 16 votes!
Status: NEW → ASSIGNED
Comment 11•24 years ago
|
||
I would just exclude it on Netscape for Linux, instead of excluding everything
except Mozilla. It is part of the HTML 4.01 specification, which means any
browser that's following the standards should honor it.
Comment 12•24 years ago
|
||
what does netscape for linux do when you feed it an html page with <label>s?
Comment 13•24 years ago
|
||
Comment 14•24 years ago
|
||
Ok everyone, I just posted another patch. This one uses two subs in
CGI.pl to do the regexp checking of the user agent and print the label tags.
This new patch patches the bug_form.pl file to use the subs at the
approate places. After this is put on landfill and deemed working (it might
take a few tries), I will make this patch extend to other forms and get it
checked in.
Comment 15•24 years ago
|
||
The main page on landfill says this is being tested there (didn't see anything
in this bug report to say it had been posted on landfill).
I can verify that the <label> tags are appearing in the source, and that it does
NOT work on Navigator 4.6 (Windows). Doesn't break it either, though, so no
need to remove them for that user agent.
Comment 16•24 years ago
|
||
I don't have access to windows to test this, but are the label tags in the
source for anything but mozilla (it shouldn't)
Comment 17•24 years ago
|
||
They are in the source for Netscape 4.6 (Windows). Netscape doesn't honor them,
but it doesn't break it, either. It should be included in the source unless we
know it breaks a browser, because it is part of the standard, and the standard
was written that browsers are supposed to just ignore tags they don't
understand.
Comment 18•24 years ago
|
||
great! Looks like everything is working fine with this. I'll finish this up by
doing this for some other fields and all should be well.
Comment 19•24 years ago
|
||
Zach - what's the status of this patch?
Gerv
Comment 20•24 years ago
|
||
The status of this patch is several things.
1. the patch that is attached to the bug is broken. I forgot some ;'s and
things were majorly broken. Tara fixed it on landfill.
2. I am low on time and have not gotten around to finishing it. In the mean
time, the fixed version of the patch works fine and it should be checkedin. I
need to get around to writing a new patch to query.cgi that uses the
printLabel and printEndLabel subs, because some browsers break with
the label tag.
OS: Windows NT → All
Hardware: PC → All
Comment 21•24 years ago
|
||
Problem is that landfill's bugzilla install is so hacked about, last I heard,
tara was going to nuke it... If you want some files from there, let me know
ASAP.
If you are happy to sort this out, could you create new patches for CGI.pl,
query.cgi and <the other file> and attach them? I'll make sure they appear on
Landfill.
Adding 2.12 as reasonably low-risk, high-votes bug.
Gerv
Whiteboard: 2.12
Comment 22•24 years ago
|
||
Comment 23•24 years ago
|
||
This is now available on landfill. The v3 version of the patch is still wildly
busted, so posting my fixed version for you perusal. Please let me and/or zach
know which browsers you've hit the pages with, and if there was any broken
behavior.
Comment 24•24 years ago
|
||
Comment 25•24 years ago
|
||
Doesn't break Netscape 4.75. Works correctly in Mozilla 20001025 except that
Netscape 4 seems to imply a <BR> for </LABEL><LABEL> and Mozilla doesn't. This
means that, for example, all the radio buttons (Leave as ASSIGNED, Resolve
as... etc.) are on the same line.
This is bad. And ugly.
Gerv
LABEL should not imply line breaks -- it's an inline element. In which browser
does it?
Comment 27•24 years ago
|
||
In fact, this bug isn't quite what I described. <BR> tags inside <LABEL> tags
get ignored by Mozilla. dbaron - is this correct behaviour?
The "workaround" is to move the <BR>s outside the <LABEL> tags. Tara - you might
need to patch up your patch :-)
Gerv
Comment 28•24 years ago
|
||
Just from a random user perspective, the thought of <br>'s in <label>'s sounds
awful.
Comment 29•24 years ago
|
||
> Doesn't break Netscape 4.75. Works correctly in Mozilla
> 20001025 except that
> Netscape 4 seems to imply a <BR> for </LABEL><LABEL>
> and Mozilla doesn't.
I don't see this as a big problem, since soon, few bugs entered into BugZilla
will be entered using Netscape <6. And using the 'label' element is really much
more practical (good for usability).
Comment 30•24 years ago
|
||
Huftis: You are commenting on a description of the bug which is incorrect :-)
Please read my later comment. The bug is in Mozilla.
Gerv
Comment 31•24 years ago
|
||
Not to mention that assuming the world will upgrade to 6.0 is overly
optimistic at best, and certainly not a reason avoid fixing bad 4.x behavior.
Anybody tried looking at this under (aaaii)IE(eeeee) yet?
Comment 32•24 years ago
|
||
Everything works fine in IE 5 on the Mac. IE does understand <label> and
it does everything it should. There might be a mozilla html element bug
here. Has this been reported already. This bug should be an rtm++ one
(knowing PDT it won't be). Pulling the 2.12 because of the mozilla
problem.
Whiteboard: 2.12
Comment 33•24 years ago
|
||
Comment 34•24 years ago
|
||
*** Bug 66462 has been marked as a duplicate of this bug. ***
Comment 35•24 years ago
|
||
so what do I need to do to get this into the latest version of bugzilla?
Comment 36•24 years ago
|
||
btw, in the smaller patch I had in bug 66462, I put the <br>'s outside the
<label> (as they should have been!) and it seems to work fine.
Comment 37•24 years ago
|
||
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=23405
Personally, I prefer the patch from the bug 66462 as it doesn't have the <br>
problem mentioned in this bug. Also, as is stated both here and in the other
bug, this is now standard HTML (v4) so it's supported by more than just Mozilla.
And by the very nature of HTML, any borwser that doesn't support this feature
will simply ignore it.
Comment 39•24 years ago
|
||
Nominating for 2.14, but is this ready right now, ie for 2.12 consideration?
QA Contact: matty
Whiteboard: 2.14
Comment 40•24 years ago
|
||
I don't understand why you're checking if the HTTP_USER_AGENT contains
Mozilla before printing a <label>. Any UA who doesn't understand that tag
should just ignore it, and probably will. So IMHO the tag could be sent
out unconditionally. This would also make things easier - no new sub-s,
no additional require "CGI.pl", etc.
Comment 41•24 years ago
|
||
This actually needs to be changed. We shouldn't check for a mozilla UA,
but we should move the tags outside of the <br>. I am SWAMPED with
work on 'testmanager' along with kiosk mode...So can someone be really
nice and fix this? Basically, it would require moving printlabel() calls
outside of <br> tags and taking out the UA checking. We should still keep
the printlabel() and printendlabel() subs around, incase we find another
incompatibility with a browser that we need to filter out.
Comment 43•24 years ago
|
||
Thanks Stx! Lifesaver!
Updated•24 years ago
|
Whiteboard: 2.14 → 2.16
Comment 44•24 years ago
|
||
Comment 45•24 years ago
|
||
Comment 46•24 years ago
|
||
Comment 47•24 years ago
|
||
Patch is attached, please review and check in. Patch 2001 is the "real
thing", the other one lacks whitespace changes (diff -ubB) to improve
readability for reviewers.
Sorry, the patch is quite big, since there are lots of
<input type="checkbox"> and <input type="radio"> in Bugzilla. But it
is still only a change in the HTML output, so it's easy to test and is
almost riskless. Could this still make it for 2.12? (Nominating.)
I have tested most (maybe 80%) of the <label>s with Mozilla 0.8 on my
local Bugzilla installation and it works fine.
Keywords: review
Whiteboard: 2.16 → 2.12
Comment 48•24 years ago
|
||
sorry, but 2.12 is feature-locked and this will take too much time to review to
sneak it in anyway. Putting back to 2.16. You do want us to release 2.12,
right?
Whiteboard: 2.12 → 2.16
Comment 49•24 years ago
|
||
That's what I feared, but please also consider
1. the number of votes (and CCs) on this bug,
2. its low-risk nature (only minor change in HTML, regardless of the amount) and
3. after other changes have been made, collisions will likely occur and this
patch has to be redone, at least in part.
It took me about two or three hours to make this patch, so a review plus
checkin could be done in no more than an hour, I suppose.
Or maybe only check in the highly visible files like query.cgi, bug_form.pl,
createattachment.cgi and userprefs.cgi (with all these new email options where
this fix would be of great benefit) this time.
And yes, I'm eagerly waiting the 2.12 release, but I also want to help make it
as good as possible. :) (Who knows when the next release will come out.)
Updated•23 years ago
|
Priority: P3 → P5
Updated•23 years ago
|
Priority: P5 → P2
Comment 51•23 years ago
|
||
*** Bug 92752 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Component: Bugzilla → User Interface
Product: Webtools → Bugzilla
Version: other → 2.10
Comment 52•23 years ago
|
||
faniz: can you confirm this patch doesn't have nasty effect on Navigator 4.x?
And that it still applies cleanly?
Gerv
Comment 53•23 years ago
|
||
Faniz? Are you still interested in pushing this patch?
Gerv
Comment 54•23 years ago
|
||
This patch has, from a visual inspection, almost certainly rotted. If one of the
nine people who voted for this bug wishes to regenerate the relevant parts of
it, please do so, and move it back to 2.16.
We also need the definitive word on cross-browser testing of the changes. No-one
seems to know if this breaks any browsers or not.
Gerv
Target Milestone: Bugzilla 2.16 → Future
Comment 55•23 years ago
|
||
It's probably best to wait until templatisation has finished, before
regenerating the patch.
Updated•23 years ago
|
Updated•23 years ago
|
Severity: normal → enhancement
Target Milestone: Future → Bugzilla 2.18
Comment 56•23 years ago
|
||
*** Bug 105578 has been marked as a duplicate of this bug. ***
Comment 57•23 years ago
|
||
If nobody disagrees, I will use this bug as a tracker for various label-related
bugs I will file (and fix). Better to have small patches than big ones, you
heard the man..
Comment 58•23 years ago
|
||
*** Bug 122898 has been marked as a duplicate of this bug. ***
Comment 59•23 years ago
|
||
From bug 122898, with respect to the query page:
> I recommend:
> Alt+Q submit _q_uery
> Alt+S _s_ummary
> Alt+D a _d_escription entry
> Alt+U _U_RL
> Alt+W Status _w_hiteboard
> Alt+K _K_eyword
Comment 60•22 years ago
|
||
Note that the <label> should also be used for type=input und for <select> in
order to be compatible with
a) W3C Web Content Accessibility Guidelines, Priority 2
http://www.w3.org/TR/WAI-WEBCONTENT/
b) the US Sec.508 (http://www.access-board.gov/sec508/508standards.htm)
as tested by http://bobby.watchfire.com
Updated•22 years ago
|
Attachment #12688 -
Flags: review?
Attachment #18352 -
Flags: review?
Updated•22 years ago
|
Attachment #26224 -
Flags: review?
Updated•22 years ago
|
Attachment #13771 -
Flags: review?
Updated•22 years ago
|
Attachment #26225 -
Flags: review?
Attachment #26226 -
Flags: review?
Updated•22 years ago
|
Attachment #18407 -
Flags: review?
Updated•22 years ago
|
Attachment #26225 -
Attachment is obsolete: true
Attachment #26225 -
Flags: review?
Updated•22 years ago
|
Attachment #12688 -
Attachment is obsolete: true
Attachment #12688 -
Flags: review?
Updated•22 years ago
|
Attachment #13771 -
Attachment is obsolete: true
Attachment #13771 -
Flags: review?
Updated•22 years ago
|
Attachment #18352 -
Attachment is obsolete: true
Attachment #18352 -
Flags: review?
Updated•22 years ago
|
Attachment #18407 -
Attachment is obsolete: true
Attachment #18407 -
Flags: review?
Comment 61•22 years ago
|
||
Comment on attachment 26224 [details] [diff] [review]
patch 2001
Rotted.
Attachment #26224 -
Flags: review? → review-
Comment 62•22 years ago
|
||
Comment on attachment 26226 [details] [diff] [review]
patch without removal of trailing whitespace to improve readability for reviewers
Rotted.
All the dependencies are fixed, so if this is a meta-bug it should be fixed as
well. Christian (or anyone else), is there any more work to be done here?
Attachment #26226 -
Flags: review? → review-
Comment 63•22 years ago
|
||
I'll do a review of the code in CVS HEAD and will open more bugs if they are
missing, closing this bug if not.
Comment 64•21 years ago
|
||
At 2002-08-11 12:15 Tobias Burnus wrote:
> Note that the <label> should also be used for type=input und for <select> in
> order to be compatible with [...] W3C Web Content Accessibility Guidelines.
*All* form elements should have an appurtenant <label> tag if it has some kind
of description. It's not only <input type="checkbox"> and <input
type="radiobutton"> that has usage for it, all <input>'s, <select>'s, <button>'s
etc, will be more accessible if their descriptive text is wrapped in a <label>
tag. Also, the <label> tag should use the 'for' attribute to explicitly tell
what field it belongs to, and not the alternative <label><input></label> syntax,
because the former works better in all browsers.
And while speaking of accessibility, the <table> tag is used way too much on
bugzilla. It should only be used for tabular data, and CSS should be used for
design purposes like positioning. The bugzilla design is so simple that it is
quite easy to accomplish the same things with CSS that are now accomplished with
<table>'s.
-Asbjørn
Comment 65•21 years ago
|
||
64> Also, the <label> tag should use the 'for' attribute to
64> explicitly tell what field it belongs to, and not the
64> alternative <label><input></label> syntax, because the
64> former works better in all browsers.
Of all the browsers I've tested, Internet Explorer is the only one in
which <label for=...> works and <label><input></label> doesn't work.
I agree this makes <label for=...> preferable, but let's not obfuscate
"only the former works in Internet Explorer" as "the former works better
in all browsers". Unless you are aware of any others?
Comment 66•21 years ago
|
||
*** Bug 157573 has been marked as a duplicate of this bug. ***
Comment 67•21 years ago
|
||
I just duped bug 157573 on this; that bug has a patch by burnus that is somewhat
more up to date than those attached to this bug. If someone picks up the ball, I
believe that's a good place to start.
Comment 68•21 years ago
|
||
Adding access keyword.
Also cf. http://diveintoaccessibility.org/day_28_labeling_form_elements.html
Keywords: access
Updated•21 years ago
|
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
Assignee | ||
Comment 69•21 years ago
|
||
Uploading a patch to edit.html.tmpl which adds label fields for each radio
button in the "knob" field. This increases usability quite a lot. I hope this
will be accepted. I am also reassigning to myself, since the assignee hasn't
been here in three years.
Assignee: st.n → jwbaker
Assignee | ||
Comment 70•21 years ago
|
||
The existing patches are obsolete since moving to template system. This patch
is versus 2.16.4.
Attachment #26224 -
Attachment is obsolete: true
Attachment #26226 -
Attachment is obsolete: true
Comment 72•21 years ago
|
||
We could use a patch againest the CVS tip.
Assignee | ||
Comment 73•21 years ago
|
||
Adds label fields to some radio buttons in knob.html.tmpl CVS revision 1.3, as
requested.
Attachment #145056 -
Attachment is obsolete: true
Comment 74•21 years ago
|
||
Comment on attachment 145060 [details] [diff] [review]
Patch to knob.html.tmpl
r=gerv.
Gerv
Attachment #145060 -
Flags: review+
Updated•21 years ago
|
Flags: approval?
Updated•21 years ago
|
Flags: approval? → approval+
Target Milestone: Bugzilla 2.20 → Bugzilla 2.18
Comment 75•21 years ago
|
||
Checking in template/en/default/bug/knob.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/knob.html.tmpl,v <--
knob.html.tmpl
new revision: 1.4; previous revision: 1.3
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•