[Bug 12256] <input type=number value=""> should be valid?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12256

Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2011-03-06 14:23:49 UTC ---
>From http://validator.nu/?doc=http%3A%2F%2Fhtml5.org%2Ftools%2Fweb-apps-tracker
:

"Error: Bad value  for attribute value on element input: The empty string is
not a valid floating point number."

The offending markup:

<input id=from type=number min=1 value="" name=from required>

The reason this was output was the template code in trackerlib.py:

<input id=from type=number min=1 value="%s" name=from required>

Unless there's any harm in allowing value="" here, maybe we should allow it?

-- 
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 Sunday, 6 March 2011 14:23:51 UTC