Anyone know how to eliminate HTML5 attribute warnings in VS 2015 (update 3) such as a textbox placeholder?
Thanks much, Craig
one thing I have noticed, if the document you are working on does not have a reconized filetype extention, VS highlights a lot of elements and attributes it does not know about.
So my question to you, is the file extention "html" or a script map? If it is a script map like wcsx, you can register it by going to menu Tools > Options > Text Editor > File Extentions and then specifing yours and selecting "Web Forms Editor".
There are other options of the type of editor you can select. If Web Form Editor does not work (it does for me) then maybe try one of hte others.
Thanks for the input. Unfortunetly, I could not warnings to clear. It's a simple login page in .net aspx page with c# codebehind.
I also tried disabling validation with no luck too.
Are you sure you're using an HTML 5 doctype on your document? If not it won't validate for HTML 5 and placeholder is only valid in HTML 5.
Make sure you have:
<!DOCTYPE html>
<html>
at the top. The DOCTYPE
is critical.
+++ Rick ---