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

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 780782 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 3/6/2013 7:08:34 AM
Access Restriction Public

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
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:29 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
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)