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>

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,

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

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.4.0 : Friday, 17 January 2020 20:01:49 UTC