<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Vanadium: Semantic client side validation</title>
	<atom:link href="http://ajaxian.com/archives/vanadium-semantic-client-side-validation/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: dawn</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275621</link>
		<dc:creator>dawn</dc:creator>
		<pubDate>Wed, 23 Sep 2009 16:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275621</guid>
		<description>@daniello, : anywhere in your class attribute (e.g. class=&quot;myns:req stylingcn&quot;) will confuse CSS and styles will not be applied on the element for that class or any other classes in the attribute.  In the example given, .styleingcn{} styles would not be applied to the element.

I found this out the hard way, so at my work, we&#039;re using &quot;JS_&quot; to mark out unobtrusively added functionality for that exact reason.  It also has the added benefit of demarking which classes are for styles and which are for unobtrusive JavaScript for other developers.

Something like JS_minlength(4) or JS_length(min=4,max=6) works fine cross-browser.

As for choice of attribute, I think class is the right way to go because:
1) it can be validly added to a wide range of element, unlike rel.
2) the data inside the class attribute is just CDATA as far as semantics are concerned, which is not the case for attributes like rel.
3) data-* will solve the issue, but its not yet in a recommended candidate.  you might as well be using myrandomattr=&quot;&quot;.  if you want to see the risks of premature implementation, look up &#039;ppk&#039; and &#039;drag and drop&#039; :-)</description>
		<content:encoded><![CDATA[<p>@daniello, : anywhere in your class attribute (e.g. class=&#8221;myns:req stylingcn&#8221;) will confuse CSS and styles will not be applied on the element for that class or any other classes in the attribute.  In the example given, .styleingcn{} styles would not be applied to the element.</p>
<p>I found this out the hard way, so at my work, we&#8217;re using &#8220;JS_&#8221; to mark out unobtrusively added functionality for that exact reason.  It also has the added benefit of demarking which classes are for styles and which are for unobtrusive JavaScript for other developers.</p>
<p>Something like JS_minlength(4) or JS_length(min=4,max=6) works fine cross-browser.</p>
<p>As for choice of attribute, I think class is the right way to go because:<br />
1) it can be validly added to a wide range of element, unlike rel.<br />
2) the data inside the class attribute is just CDATA as far as semantics are concerned, which is not the case for attributes like rel.<br />
3) data-* will solve the issue, but its not yet in a recommended candidate.  you might as well be using myrandomattr=&#8221;".  if you want to see the risks of premature implementation, look up &#8216;ppk&#8217; and &#8216;drag and drop&#8217; :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whatgoodisaroad</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275548</link>
		<dc:creator>whatgoodisaroad</dc:creator>
		<pubDate>Sun, 20 Sep 2009 22:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275548</guid>
		<description>I&#039;m shamelessly tooting my own horn, but I started the jQuery.validity project because I wanted a less obtrusive, more flexible validation framework. Also, it can take care of some more complected validation rules than the jQuery Validate.

http://validity.thatscaptaintoyou.com/</description>
		<content:encoded><![CDATA[<p>I&#8217;m shamelessly tooting my own horn, but I started the jQuery.validity project because I wanted a less obtrusive, more flexible validation framework. Also, it can take care of some more complected validation rules than the jQuery Validate.</p>
<p><a href="http://validity.thatscaptaintoyou.com/" rel="nofollow">http://validity.thatscaptaintoyou.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniello</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275547</link>
		<dc:creator>daniello</dc:creator>
		<pubDate>Sat, 19 Sep 2009 19:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275547</guid>
		<description>@medikoo
Good point that would be &#039;data-validation&#039; I guess ;)

--
Daniel</description>
		<content:encoded><![CDATA[<p>@medikoo<br />
Good point that would be &#8216;data-validation&#8217; I guess ;)</p>
<p>&#8211;<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: medikoo</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275546</link>
		<dc:creator>medikoo</dc:creator>
		<pubDate>Sat, 19 Sep 2009 15:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275546</guid>
		<description>@daniello
Instead of &#039;class&#039; why you haven&#039;t used &#039;data-*&#039; attribute ? It&#039;s standard HTML5 way and I think it&#039;s more appropriate for this case.

In HTML5 we also have e.g.email type for input but you go totally different way. You think HTML5 won&#039;t make it to browsers? What will you do when browsers will start to support HTML5 input types natively ? You&#039;ll change Vanadium API to make to compatible ?</description>
		<content:encoded><![CDATA[<p>@daniello<br />
Instead of &#8216;class&#8217; why you haven&#8217;t used &#8216;data-*&#8217; attribute ? It&#8217;s standard HTML5 way and I think it&#8217;s more appropriate for this case.</p>
<p>In HTML5 we also have e.g.email type for input but you go totally different way. You think HTML5 won&#8217;t make it to browsers? What will you do when browsers will start to support HTML5 input types natively ? You&#8217;ll change Vanadium API to make to compatible ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniello</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275545</link>
		<dc:creator>daniello</dc:creator>
		<pubDate>Sat, 19 Sep 2009 09:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275545</guid>
		<description>Hi Folks,

   I&#039;m the author of the VanadiumJS. First of all thank you all for the comments. Secondly apologizes for demo page not working in Opera.
Let me clarify some things.

1. class attribute is not only way of declaring validations. You can do it by attaching external file in JSON format. So it doesn&#039;t mix with the HTML (for purists) ;)

2. I already got comment about not being semantic requiring creating elements holding error messages while there are no validation errors yet. You are not forced to do that. One can simply not create advice element. Vanadium will create it dynamically for you and delete it when the validation passes. One can create empty message advice (styled empty placeholder), Vanadium will detect the advice is empty and rather just showing it / hiding it, will inject the dynamic message to  the advice having empty text element. The only problem is when we do not like build-in messages e.g. we want to internationalize page. In that case useful thing will be coming new feature, allowing you declare dynamic messages in mentioned external JSON.

Cheers,
Daniel</description>
		<content:encoded><![CDATA[<p>Hi Folks,</p>
<p>   I&#8217;m the author of the VanadiumJS. First of all thank you all for the comments. Secondly apologizes for demo page not working in Opera.<br />
Let me clarify some things.</p>
<p>1. class attribute is not only way of declaring validations. You can do it by attaching external file in JSON format. So it doesn&#8217;t mix with the HTML (for purists) ;)</p>
<p>2. I already got comment about not being semantic requiring creating elements holding error messages while there are no validation errors yet. You are not forced to do that. One can simply not create advice element. Vanadium will create it dynamically for you and delete it when the validation passes. One can create empty message advice (styled empty placeholder), Vanadium will detect the advice is empty and rather just showing it / hiding it, will inject the dynamic message to  the advice having empty text element. The only problem is when we do not like build-in messages e.g. we want to internationalize page. In that case useful thing will be coming new feature, allowing you declare dynamic messages in mentioned external JSON.</p>
<p>Cheers,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: functionform</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275540</link>
		<dc:creator>functionform</dc:creator>
		<pubDate>Fri, 18 Sep 2009 18:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275540</guid>
		<description>jQuery validate plugin for the mature, less-intrusive version of this.  (no misuse of class attributes)

http://bassistance.de/jquery-plugins/jquery-plugin-validation/</description>
		<content:encoded><![CDATA[<p>jQuery validate plugin for the mature, less-intrusive version of this.  (no misuse of class attributes)</p>
<p><a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: idio</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275539</link>
		<dc:creator>idio</dc:creator>
		<pubDate>Fri, 18 Sep 2009 18:11:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275539</guid>
		<description>This is basically the same idea as fValidator, which has been out for a while. We&#039;ve been running fValidator on a handful sites in production for a few years now. I love it.

http://zendold.lojcomm.com.br/fvalidator/</description>
		<content:encoded><![CDATA[<p>This is basically the same idea as fValidator, which has been out for a while. We&#8217;ve been running fValidator on a handful sites in production for a few years now. I love it.</p>
<p><a href="http://zendold.lojcomm.com.br/fvalidator/" rel="nofollow">http://zendold.lojcomm.com.br/fvalidator/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reinis</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275538</link>
		<dc:creator>reinis</dc:creator>
		<pubDate>Fri, 18 Sep 2009 17:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275538</guid>
		<description>I have no trust for people who don&#039;t even know how to use fixed positioning. The footer in their site jerks around all over the place.</description>
		<content:encoded><![CDATA[<p>I have no trust for people who don&#8217;t even know how to use fixed positioning. The footer in their site jerks around all over the place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eyelidlessness</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275537</link>
		<dc:creator>eyelidlessness</dc:creator>
		<pubDate>Fri, 18 Sep 2009 17:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275537</guid>
		<description>There&#039;s nothing wrong with creating your own attributes. It&#039;s been encouraged since XHTML (with namespaces) and in HTML5 (with data- prefix). Nevermind that it has a clearly practical use that, if you&#039;re sane about naming your attributes, is not going to do any real harm.

The use of class this way is ridiculous in comparison.

I&#039;m all for easier-to-use validation, but this misses the mark with its completely unintuitive and abusive syntax.</description>
		<content:encoded><![CDATA[<p>There&#8217;s nothing wrong with creating your own attributes. It&#8217;s been encouraged since XHTML (with namespaces) and in HTML5 (with data- prefix). Nevermind that it has a clearly practical use that, if you&#8217;re sane about naming your attributes, is not going to do any real harm.</p>
<p>The use of class this way is ridiculous in comparison.</p>
<p>I&#8217;m all for easier-to-use validation, but this misses the mark with its completely unintuitive and abusive syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erikharrison</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275536</link>
		<dc:creator>erikharrison</dc:creator>
		<pubDate>Fri, 18 Sep 2009 17:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275536</guid>
		<description>The class attribute was intended for this kind of work - as someone has pointed out, it&#039;s in the spec, and more the point, we&#039;ve been adding magic behavior via the class attribute for years now.

Such a tool (though possibly not this one) is probably very handy. It makes it trivial for designers to implement complete and correct validation. Validation is hard (in fact, this tool&#039;s email address validation rule is broken), and providing a prebuilt tool that your HTML/Photoshop guy can just drop in and it works is a Good Thing, and in this case it scales up nicely to more complex tasks without having to completely replacing the validation tool.</description>
		<content:encoded><![CDATA[<p>The class attribute was intended for this kind of work &#8211; as someone has pointed out, it&#8217;s in the spec, and more the point, we&#8217;ve been adding magic behavior via the class attribute for years now.</p>
<p>Such a tool (though possibly not this one) is probably very handy. It makes it trivial for designers to implement complete and correct validation. Validation is hard (in fact, this tool&#8217;s email address validation rule is broken), and providing a prebuilt tool that your HTML/Photoshop guy can just drop in and it works is a Good Thing, and in this case it scales up nicely to more complex tasks without having to completely replacing the validation tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sashasklar</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275535</link>
		<dc:creator>sashasklar</dc:creator>
		<pubDate>Fri, 18 Sep 2009 17:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275535</guid>
		<description>I don&#039;t see this as an improvement over the current favored abstraction: placing form validation rules in the behavior (JavaScript) layer. There&#039;s also an assumption here that validation rules are a static attribute of the form, but that&#039;s rarely true in applications of any complexity.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see this as an improvement over the current favored abstraction: placing form validation rules in the behavior (JavaScript) layer. There&#8217;s also an assumption here that validation rules are a static attribute of the form, but that&#8217;s rarely true in applications of any complexity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jadet</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275534</link>
		<dc:creator>Jadet</dc:creator>
		<pubDate>Fri, 18 Sep 2009 16:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275534</guid>
		<description>Creating your own invalid attributes is bad.

Better to be creative with existing attributes, and try to keep things elegant while you are at it.</description>
		<content:encoded><![CDATA[<p>Creating your own invalid attributes is bad.</p>
<p>Better to be creative with existing attributes, and try to keep things elegant while you are at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darkimmortal</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275533</link>
		<dc:creator>Darkimmortal</dc:creator>
		<pubDate>Fri, 18 Sep 2009 15:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275533</guid>
		<description>Just make up your own attributes...

Messing with class/rel/alt/title isn&#039;t cool.</description>
		<content:encoded><![CDATA[<p>Just make up your own attributes&#8230;</p>
<p>Messing with class/rel/alt/title isn&#8217;t cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liquidrums</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275531</link>
		<dc:creator>Liquidrums</dc:creator>
		<pubDate>Fri, 18 Sep 2009 14:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275531</guid>
		<description>The problem isn&#039;t where the custom attributes are stored but in doing validation on the client-side that requires this much logic &amp; maintenance.

The form will have to be validated on the server-side in the end, so why not simply do partial validation via AJAX and intelligently handle the results?</description>
		<content:encoded><![CDATA[<p>The problem isn&#8217;t where the custom attributes are stored but in doing validation on the client-side that requires this much logic &amp; maintenance.</p>
<p>The form will have to be validated on the server-side in the end, so why not simply do partial validation via AJAX and intelligently handle the results?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: compbry15</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275530</link>
		<dc:creator>compbry15</dc:creator>
		<pubDate>Fri, 18 Sep 2009 13:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275530</guid>
		<description>I think some of the previous solutions we have seen in the past, which specify validation requirements in a separate JS object are better solutions than this for a few reasons.  As mentioned previously, this seems to completely nullify any ability to style the inputs through CSS.  Another reason is that, although it might require slightly more typing, putting the validation requirements in the JS files as objects or something will better serve to separate form and function (both literally and figuratively).  

This separation would also would help on larger sites which might have multiple forms across its various pages which all share the same validation requirements.  All you would need do is include 1 js file across all pages with forms. The js file would end up being cached and you would be able to re-use your previously coded validation rules.  Also, when you want to globally add more validation rules you simply modify one file, rather than needing to change all templates having to do with forms.  I suppose you could abstract out that form template, but I still think the other way is better.</description>
		<content:encoded><![CDATA[<p>I think some of the previous solutions we have seen in the past, which specify validation requirements in a separate JS object are better solutions than this for a few reasons.  As mentioned previously, this seems to completely nullify any ability to style the inputs through CSS.  Another reason is that, although it might require slightly more typing, putting the validation requirements in the JS files as objects or something will better serve to separate form and function (both literally and figuratively).  </p>
<p>This separation would also would help on larger sites which might have multiple forms across its various pages which all share the same validation requirements.  All you would need do is include 1 js file across all pages with forms. The js file would end up being cached and you would be able to re-use your previously coded validation rules.  Also, when you want to globally add more validation rules you simply modify one file, rather than needing to change all templates having to do with forms.  I suppose you could abstract out that form template, but I still think the other way is better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sentientholon</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275528</link>
		<dc:creator>sentientholon</dc:creator>
		<pubDate>Fri, 18 Sep 2009 12:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275528</guid>
		<description>Yes classes can be used for behavioral semantics, not just appearance, but I agree with other commenters that &quot;:format;/^(vanadium)+$/i&quot; is an awful, if technically legal, class name.

Apparently the tool allows you to specify rules unobtrusively via JavaScript as well.  I&#039;d definitely go that route.</description>
		<content:encoded><![CDATA[<p>Yes classes can be used for behavioral semantics, not just appearance, but I agree with other commenters that &#8220;:format;/^(vanadium)+$/i&#8221; is an awful, if technically legal, class name.</p>
<p>Apparently the tool allows you to specify rules unobtrusively via JavaScript as well.  I&#8217;d definitely go that route.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ywg</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275527</link>
		<dc:creator>ywg</dc:creator>
		<pubDate>Fri, 18 Sep 2009 12:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275527</guid>
		<description>@jmar777 : I didn&#039;t knew that either.

@fabienmenager : &quot;Furthermore, an input marqued as “required” could be styled differently, thanks to a CSS stylesheet, very easily.&quot; Maybe, but an input marqued as &quot;:required&quot; or &quot;:format;/^(vanadium)+$/i&quot; can&#039;t be styled at all because theses strings are not valid Qname and will be discarded by the css engine.</description>
		<content:encoded><![CDATA[<p>@jmar777 : I didn&#8217;t knew that either.</p>
<p>@fabienmenager : &#8220;Furthermore, an input marqued as “required” could be styled differently, thanks to a CSS stylesheet, very easily.&#8221; Maybe, but an input marqued as &#8220;:required&#8221; or &#8220;:format;/^(vanadium)+$/i&#8221; can&#8217;t be styled at all because theses strings are not valid Qname and will be discarded by the css engine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fabienmenager</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275526</link>
		<dc:creator>fabienmenager</dc:creator>
		<pubDate>Fri, 18 Sep 2009 12:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275526</guid>
		<description>@jmar777 Well, I didn&#039;t know this was mentionned in the spec ;)
But I agree with your comment : a className looking like this is not really ideal, a better solution would be to refer to a JS function taking the input value in argument and returning a boolean. That would be useful for regex checking like in your example. We would have class=&quot;:format;checkFormat&quot; and the function :

function checkFormat(v) {
  return /^(vanadium)+$/i.test(v);
}</description>
		<content:encoded><![CDATA[<p>@jmar777 Well, I didn&#8217;t know this was mentionned in the spec ;)<br />
But I agree with your comment : a className looking like this is not really ideal, a better solution would be to refer to a JS function taking the input value in argument and returning a boolean. That would be useful for regex checking like in your example. We would have class=&#8221;:format;checkFormat&#8221; and the function :</p>
<p>function checkFormat(v) {<br />
  return /^(vanadium)+$/i.test(v);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmar777</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275524</link>
		<dc:creator>jmar777</dc:creator>
		<pubDate>Fri, 18 Sep 2009 12:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275524</guid>
		<description>@fabienmenager - I went to W3C to check on that, and.... you&#039;re right.  According to W3C (http://www.w3.org/TR/html401/struct/global.html#h-7.5.2):

The class attribute may be used as....
 - As a style sheet selector [...]
 - For general purpose processing by user agents.

I had never noticed that before.</description>
		<content:encoded><![CDATA[<p>@fabienmenager &#8211; I went to W3C to check on that, and&#8230;. you&#8217;re right.  According to W3C (<a href="http://www.w3.org/TR/html401/struct/global.html#h-7.5.2" rel="nofollow">http://www.w3.org/TR/html401/struct/global.html#h-7.5.2</a>):</p>
<p>The class attribute may be used as&#8230;.<br />
 &#8211; As a style sheet selector [...]<br />
 &#8211; For general purpose processing by user agents.</p>
<p>I had never noticed that before.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fabienmenager</title>
		<link>http://ajaxian.com/archives/vanadium-semantic-client-side-validation/comment-page-1#comment-275523</link>
		<dc:creator>fabienmenager</dc:creator>
		<pubDate>Fri, 18 Sep 2009 11:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7344#comment-275523</guid>
		<description>@ywg I don&#039;t agree with you, the class is not reserved to be used by CSS, it can contain things that define the DOM element. The class attribute is generally used to add semantics to the DOM, when the available tags or the valid attributes are not enough (I think about the type attribute of the inputs).
Furthermore, an input marqued as &quot;required&quot; could be styled differently, thanks to a CSS stylesheet, very easily. That&#039;s for all these reasons that I think the class is a good choice to do such things.</description>
		<content:encoded><![CDATA[<p>@ywg I don&#8217;t agree with you, the class is not reserved to be used by CSS, it can contain things that define the DOM element. The class attribute is generally used to add semantics to the DOM, when the available tags or the valid attributes are not enough (I think about the type attribute of the inputs).<br />
Furthermore, an input marqued as &#8220;required&#8221; could be styled differently, thanks to a CSS stylesheet, very easily. That&#8217;s for all these reasons that I think the class is a good choice to do such things.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

