Comments on: CSS3 Pseudo-Classes and HTML5 Forms https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: anon https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-48533 Sun, 02 Mar 2014 17:27:24 +0000 http://html5doctor.com/?p=4483#comment-48533 Damn, I wish there was a way to stop my browser honouring these validations. I don’t really care if I give a server data that they do not want, or if I do not provide data they do want, or provide them with false data.

There aren’t legitimate reasons to use this, the server still has to validate the data (or you are trusting the client, and on a public network that is a stupid thing to do).

My main gripe currently with this feature is how it annoyingly implements what businesses will want: as much accurate data as they can get hold of, and the user’s privacy desires take 2nd fiddle. The user is in less of a position of power and control over what they disclose. Features like this form validation in the browser just play into the hands of the anti-social.

This very form implements the irritations, you make out that an email address isn’t actually required when you say it will not be published, then say it is required, then back that up with HTML 5 BS.

Ahhh, the FF element inspector thing manually lets me override your form’s wishes, and then your server has to step in and do the job you tried to tell my browser to do:

ERROR: please fill the required fields (name, email).

As ever I have provided an email address where if it leads to spam you will get the spam, postmaster@html5doctor.com . If you don’t bother validating email addresses then people will not have to put in valid ones, and if it is their email address with a risk of spam, or yours, then the choice is obvious.

]]>
By: Sebastián Rojas https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-43557 Fri, 13 Dec 2013 05:46:15 +0000 http://html5doctor.com/?p=4483#comment-43557 Hello. How can I do that with other markup (laberl before input)?. Thanks!

]]>
By: gopi https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-29115 Sun, 28 Oct 2012 05:33:42 +0000 http://html5doctor.com/?p=4483#comment-29115 this is used to know about html5.i understand how to create a website using html5.

]]>
By: JeffNunn https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-28042 Wed, 13 Jun 2012 14:18:06 +0000 http://html5doctor.com/?p=4483#comment-28042 Obviously it matters for browser developers, people on the workgroup etc. but for the average developer who implements these features, it really doesn’t

]]>
By: JeffNunn https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-28041 Wed, 13 Jun 2012 14:16:34 +0000 http://html5doctor.com/?p=4483#comment-28041 The distinction between HTML5 and CSS3 is pedantic and isn’t very meaningful. They are highly related and the difference between the two is only important to people working directly with the specs. Practically, it boils down to the exact same thing — new features for a more interactive web that reduce the amount of JS you need with varying degrees of browser support.

]]>
By: Gunnar Bittersmann https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-25602 Mon, 14 May 2012 20:09:56 +0000 http://html5doctor.com/?p=4483#comment-25602 Do you have any sources to support your statement that HTML5 Please and the W3C would have us believe CSS3 was a part of HTML5?
Otherwise I tend to think: Contrary to what you would have us believe, neither HTML5 Please nor the W3C would do that.

]]>
By: Rex https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-25599 Mon, 14 May 2012 17:39:09 +0000 http://html5doctor.com/?p=4483#comment-25599 I used small concept of required attribute and designed it, its here

http://www.webstutorial.com/css3-html-5-login-form-validation/html-5

do you have any idea on how to design the alerts?

]]>
By: George Dina https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-25093 Mon, 19 Mar 2012 08:27:20 +0000 http://html5doctor.com/?p=4483#comment-25093 Nice, I will :out-of-range and :in-range for a back end project I am on now.
I assume there will not be any problems with browser compatibility along my colleagues.

]]>
By: Gunnar Bittersmann https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-25075 Fri, 16 Mar 2012 09:55:36 +0000 http://html5doctor.com/?p=4483#comment-25075 @Oli: Thanks for pointing that out.

As for the spec […]

Hm, what spec? The WHATWG and the W3C specs differ: there’s no such paragraph neither in the current WD nor in the current editor’s draft.

PS isn’t i18n fun!? :|

To quote Addison Phillips: “Internationalization is not a feature. It is an architecture.”

The whole mess comes from IT being developed for a great part by native English speakers blind for the needs of other languages.

]]>
By: Oli Studholme https://stevefaulkner.github.io/html5doctored/css3-pseudo-classes-and-html5-forms/#comment-25072 Fri, 16 Mar 2012 03:48:06 +0000 http://html5doctor.com/?p=4483#comment-25072 @Gunnar — you’re partially right in that some browsers don’t take Internationalized Domain Name (IDN) values into account for validation. Because of this I think it’s best to use type="email" only to trigger an email-specific keyboard layout on mobile devices. For HTML5 email validation you can use pattern="[^ @]*@[^ @]*", but if using both pattern will only restrict type="email", not broaden its scope. Because of this if you’re using type="email" you also want to use formnovalidate. On the bright side this is a browser bug, so eventually Peter’s swish CSS3 will work as expected for everyone.

As for the spec, IDN support is a UI issue as international email addresses use punycode behind the scenes, so it’s not something the spec dictates. Given that, note the spec says:

User agents may transform the value for display and editing; in particular, user agents should convert punycode in the value to IDN in the display and vice versa.

More info: HTML5 spec bug 15489 for background, WebKit bug #40761.

PS isn’t i18n fun!? :|

]]>