Home Dashboard Directory Help
Search

HTML5 shows empty input readonly attribute as invalid by Edward D. Brey


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 780782
Opened: 3/6/2013 7:08:34 AM
Access Restriction: Public
0
Workaround(s)
view
2
User(s) can reproduce this bug

Description

The HTML5 validator shows a warning if an <input> element has a "readonly" attribute without a value. The error is "Validation (HTML5): This attribute name must be followed by an equal (=) sign and a value. If the value is in quotation marks, the quotation marks must match."

However, HTML5 allows the readonly attribute to be empty: http://www.w3.org/TR/html-markup/input.text.html#input.text.attrs.readonly
Details
Sign in to post a comment.
Posted by Microsoft on 3/19/2013 at 11:32 AM
Thanks for the feedback. This is now fixed.
Posted by StartedWithDOS on 3/7/2013 at 9:50 PM
The disabled attribute is not affected and shows fine in the editor.
Posted by StartedWithDOS on 3/7/2013 at 9:50 PM
Clearly a bug. I was just getting ready to file a bug report.
Posted by Microsoft on 3/6/2013 at 7:29 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 3/6/2013 at 7:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.