/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

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [whatwg] [WF2] Label with empty for attribute
  5. </TITLE>
  6. <LINK REL="Index" HREF="index.html" >
  7. <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">
  8. <META NAME="robots" CONTENT="index,nofollow">
  9. <style type="text/css">
  10. pre {
  11. white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
  12. }
  13. </style>
  14. <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
  15. <LINK REL="Previous" HREF="047779.html">
  16. <LINK REL="Next" HREF="047799.html">
  17. </HEAD>
  18. <BODY BGCOLOR="#ffffff">
  19. <H1>[whatwg] [WF2] Label with empty for attribute</H1>
  20. <!--htdig_noindex-->
  21. <B>Anne van Kesteren</B>
  22. <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"
  23. TITLE="[whatwg] [WF2] Label with empty for attribute">fora at annevankesteren.nl
  24. </A><BR>
  25. <I>Sat Jan 21 02:40:59 PST 2006</I>
  26. <P><UL>
  27. <LI>Previous message: <A HREF="047779.html">[whatwg] [WF2] Label with empty for attribute
  28. </A></li>
  29. <LI>Next message: <A HREF="047799.html">[whatwg] comment parsing
  30. </A></li>
  31. <LI> <B>Messages sorted by:</B>
  32. <a href="date.html#47789">[ date ]</a>
  33. <a href="thread.html#47789">[ thread ]</a>
  34. <a href="subject.html#47789">[ subject ]</a>
  35. <a href="author.html#47789">[ author ]</a>
  36. </LI>
  37. </UL>
  38. <HR>
  39. <!--/htdig_noindex-->
  40. <!--beginarticle-->
  41. <PRE>Quoting Simon Pieters &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">zcorpan at hotmail.com</A>&gt;:
  42. &gt;<i> It is not defined what should happen when a label has an empty for=&quot;&quot;
  43. </I>&gt;<i> attribute. Consider the following example:
  44. </I>&gt;<i>
  45. </I>&gt;<i> &lt;label for=&quot;&quot;&gt;foo&lt;input&gt;&lt;/label&gt;
  46. </I>&gt;<i>
  47. </I>&gt;<i> Is the label element part of the .labels DOM attribute for the input?
  48. </I>&gt;<i> What should the label's .control DOM attribute return?
  49. </I>
  50. I think &quot;for&quot; should be treated analogously to &quot;form&quot;. That would mean
  51. that the
  52. &lt;label&gt; element is not associated with any control.
  53. However, currently the specification states that for labels that point to
  54. elements that are not form controls the &quot;for&quot; attribute must be ignored. Which
  55. would imply that descendents can get focus...
  56. --
  57. Anne van Kesteren
  58. &lt;<A HREF="http://annevankesteren.nl/">http://annevankesteren.nl/</A>&gt;
  59. </PRE>
  60. <!--endarticle-->
  61. <!--htdig_noindex-->
  62. <HR>
  63. <P><UL>
  64. <!--threads-->
  65. <LI>Previous message: <A HREF="047779.html">[whatwg] [WF2] Label with empty for attribute
  66. </A></li>
  67. <LI>Next message: <A HREF="047799.html">[whatwg] comment parsing
  68. </A></li>
  69. <LI> <B>Messages sorted by:</B>
  70. <a href="date.html#47789">[ date ]</a>
  71. <a href="thread.html#47789">[ thread ]</a>
  72. <a href="subject.html#47789">[ subject ]</a>
  73. <a href="author.html#47789">[ author ]</a>
  74. </LI>
  75. </UL>
  76. <hr>
  77. <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg
  78. mailing list</a><br>
  79. <!--/htdig_noindex-->
  80. </body></html>