Tagged Questions
30
votes
14answers
22k views
Do I really need to encode '&' as '&'?
I'm using an '&' symbol with HTML5 and UTF-8 in my site's <title>. Google shows the ampersand fine on its SERPs, as do all the browsers in their titles.
http://validator.w3.org is giving me ...
94
votes
5answers
31k views
Disable validation of HTML5 form elements
In my forms, I'd like to use the new HTML5 form types, for example <input type="url" /> (more info about the types here).
The problem is that Chrome wants to be super helpful and validate these ...
21
votes
4answers
10k views
override css for html5 form validation/required popup
How can I override the default popup for a required field on a HTML5 form?
Example: http://jsfiddle.net/uKZGp/ (make sure you click the submit button to see the popup)
The HTML
<form>
...
37
votes
10answers
14k views
Opengraph validation for HTML5
Is there any way to get facebook's crappy open graph meta tags to validate if my doctype is <!DOCTYPE html> (HTML5)?
Other than facebook's opengraph meta tags, my document validates perfectly.
...
7
votes
6answers
9k views
Do any browsers yet support HTML5's checkValidity() method?
The HTML5 spec defines some very interesting validation components, including pattern (for validating against a Regexp) and required (for marking a field as required). As best I can tell, however, no ...
54
votes
9answers
3k views
Google homepage not valid html
I was looking at the www.google.com in Firebug and noticed something odd: The Google logo is centered using a center tag.
So I went and checked the page with the W3C validator and it found 48 errors. ...
5
votes
2answers
12k views
Is the copyright meta tag valid in HTML5?
<meta name="copyright" content="By Me" />
W3C validator output:
Line 5, Column 41: Bad value copyright for attribute name on element meta: Keyword copyright is not registered.
I need to ...
15
votes
4answers
9k views
How can I change or remove HTML5 form validation default error messages?
For example I have a textfield. The field is mandatory, only numbers are required and length of value must be 10. When I try to submit form with value which length is 5, the default error message ...
12
votes
4answers
5k views
How to force a html5 form validation without submitting it via JavaScript/jQuery
I have this form in my app and I will submit it via ajax, but I want to use html5 for client-side validation. So I want to be able to force the form validation via javascript/jquery. Is it possible?
...
7
votes
2answers
7k views
It is possible to validate the size and type of input=file in html5
I was reading this http://dev.w3.org/html5/markup/input.file.html, but I only found the "accept" attribute.
I tried this
<input type="file" name="imagefilename" accept="image/x-png, image/gif, ...
2
votes
1answer
2k views
jQuery :invalid HTML 5 form with required select element
I've been using $('select[required]').is(':invalid') if the browser supports the pattern attribute if(Modernizr.input.pattern) {}, and it works fine in Firefox 4-7, but Chrome and Safari are both ...
31
votes
5answers
20k views
Is it possible to add HTML5 validation to Visual Studio?
I'm working on a page using <canvas>, which is a HTML5 tag, in Visual Web Developer Express Edition 2008, and the validator in the HTML editor is telling me it's an invalid tag. That's because ...
11
votes
4answers
2k views
Delay HTML5 :invalid pseudo-class until the first event
I recently discovered that the :invalid pseudo-class applies to required form elements as soon as the page loads. For example, if you have this code:
<style>
input:invalid { background-color: ...
5
votes
3answers
5k views
Triggering HTML5 Form Validation
I have a form with several different fieldsets. I have some Javascript that displays the field sets to the users one at a time. For browsers that support HTML5 validation, I'd love to make use of it. ...
17
votes
1answer
14k views
meta http-equiv=content-language is obsolete?
I'm finishing up an HTML5 site that has a mixture of English and Mandarin Chinese.
My validator (HTML5 Validator add-on for FF) is giving me this error:
error: Using the “meta” element to specify ...