[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.

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