W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > May 2011

[Bug 12602] "<select><option>\n<option></select>" isn't a placeholder label option because its value is "\n", which is silly. We should strip spaces from the start and end in the definition of the option's label when it comes from textContent.

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 May 2011 17:51:53 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QJUcb-0004yi-0S@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12602

Tab Atkins Jr. <jackalmage@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackalmage@gmail.com

--- Comment #1 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-05-09 17:51:52 UTC ---
This is easy to work around - if your code generator (or just your personal
coding style) always puts the end tag on another line, thus filling the
<option> with whitespace, just add an empty value attribute to it instead,
like:

<select required>
  <option value=''>
  </option>
  ...other options...
</select>

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 9 May 2011 17:51:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:10 UTC