/lists.whatwg.org/pipermail/whatwg-whatwg.org/2006-January/047789.html
https://github.com/whatwg/whatwg.org · HTML · 87 lines · 73 code · 7 blank · 7 comment · 0 complexity · ffc3d86edb6b918ce6d70e1338e8fdcb MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <HTML>
- <HEAD>
- <TITLE> [whatwg] [WF2] Label with empty for attribute
- </TITLE>
- <LINK REL="Index" HREF="index.html" >
- <LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20%5BWF2%5D%20Label%20with%20empty%20for%20attribute&In-Reply-To=%3C20060121114059.be5e59txpiscscsg%40webmail.annevankesteren.nl%3E">
- <META NAME="robots" CONTENT="index,nofollow">
- <style type="text/css">
- pre {
- white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
- }
- </style>
- <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
- <LINK REL="Previous" HREF="047779.html">
- <LINK REL="Next" HREF="047799.html">
- </HEAD>
- <BODY BGCOLOR="#ffffff">
- <H1>[whatwg] [WF2] Label with empty for attribute</H1>
- <!--htdig_noindex-->
- <B>Anne van Kesteren</B>
- <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20%5BWF2%5D%20Label%20with%20empty%20for%20attribute&In-Reply-To=%3C20060121114059.be5e59txpiscscsg%40webmail.annevankesteren.nl%3E"
- TITLE="[whatwg] [WF2] Label with empty for attribute">fora at annevankesteren.nl
- </A><BR>
- <I>Sat Jan 21 02:40:59 PST 2006</I>
- <P><UL>
- <LI>Previous message: <A HREF="047779.html">[whatwg] [WF2] Label with empty for attribute
- </A></li>
- <LI>Next message: <A HREF="047799.html">[whatwg] comment parsing
- </A></li>
- <LI> <B>Messages sorted by:</B>
- <a href="date.html#47789">[ date ]</a>
- <a href="thread.html#47789">[ thread ]</a>
- <a href="subject.html#47789">[ subject ]</a>
- <a href="author.html#47789">[ author ]</a>
- </LI>
- </UL>
- <HR>
- <!--/htdig_noindex-->
- <!--beginarticle-->
- <PRE>Quoting Simon Pieters <<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">zcorpan at hotmail.com</A>>:
- ><i> It is not defined what should happen when a label has an empty for=""
- </I>><i> attribute. Consider the following example:
- </I>><i>
- </I>><i> <label for="">foo<input></label>
- </I>><i>
- </I>><i> Is the label element part of the .labels DOM attribute for the input?
- </I>><i> What should the label's .control DOM attribute return?
- </I>
- I think "for" should be treated analogously to "form". That would mean
- that the
- <label> element is not associated with any control.
- However, currently the specification states that for labels that point to
- elements that are not form controls the "for" attribute must be ignored. Which
- would imply that descendents can get focus...
- --
- Anne van Kesteren
- <<A HREF="http://annevankesteren.nl/">http://annevankesteren.nl/</A>>
- </PRE>
- <!--endarticle-->
- <!--htdig_noindex-->
- <HR>
- <P><UL>
- <!--threads-->
- <LI>Previous message: <A HREF="047779.html">[whatwg] [WF2] Label with empty for attribute
- </A></li>
- <LI>Next message: <A HREF="047799.html">[whatwg] comment parsing
- </A></li>
- <LI> <B>Messages sorted by:</B>
- <a href="date.html#47789">[ date ]</a>
- <a href="thread.html#47789">[ thread ]</a>
- <a href="subject.html#47789">[ subject ]</a>
- <a href="author.html#47789">[ author ]</a>
- </LI>
- </UL>
- <hr>
- <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
- mailing list</a><br>
- <!--/htdig_noindex-->
- </body></html>