Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-20 Thread Gez Lemon
On Mon, 21 Mar 2005 08:17:50 +1200, Sigurd Magnusson <[EMAIL PROTECTED]> wrote: > Gez; So you're under the opinion, if you're setting attributes, only for > later retrieval (i.e. that the user agent is specifically being asked to > ignore the attributes), that this is poor design? I don't necessar

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-20 Thread Sigurd Magnusson
Thanks for all your feedback; Steve Bryant: Cheers. The second approach is pretty code-heavy, so I would probably make the verbose style "onblur=checkvalidation('required=true,validation=numeric') and possibly run the onblur event on all forms at the submission, or something like that. Gez; So

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-20 Thread Kornel Lesinski
On Sun, 20 Mar 2005 03:04:23 -, Sigurd Magnusson <[EMAIL PROTECTED]> wrote: Your problem is described in detail in: http://www.alistapart.com/articles/customdtd/ Before creating your own tags/attributes, check http://whatwg.org/specs/web-forms/current-work/ -- regards, Kornel LesiƄski **

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-20 Thread Gez Lemon
On Sun, 20 Mar 2005 08:55:26 -0600, Steve Bryant <[EMAIL PROTECTED]> wrote: > > document.getElementById('EmailAddress').setAttribute("required",true); > document.getElementById('EmailAddress').setAttribute("validation","email"); > > > This would be the slightly more difficult implementation that

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-20 Thread Steve Bryant
You could also offer a choice of implementations: 1) This would be the super-easy implementation which works but won't validate. 2) document.getElementById('EmailAddress').setAttribute("required",true); document.getElementById('EmailAddress').setAttribute("validation","email"); This would

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-19 Thread Bert Doorn
G'day 1. Technical -- there will be times when the validator shows errors. > 2. Marketing -- people consider a document validates or doesn't. It's not only people... "Almost valid" documents will most likely not display if the document in question is served as "application/xhtml+xml". Therefor

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-19 Thread Gez Lemon
On Sun, 20 Mar 2005 03:46:21 +, Gez Lemon <[EMAIL PROTECTED]> wrote: > Didn't mean to leave the required attribute in, sorry :-) Cheers, Gez _ Supplement your vitamins http://juicystudio.com ** The discussion

Re: [WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-19 Thread Gez Lemon
On Sun, 20 Mar 2005 15:04:23 +1200, Sigurd Magnusson <[EMAIL PROTECTED]> wrote: > Over the past few years, we have built up a library of rather useful > Javascript libraries that we thought were a very elegant solution for adding > behaviour to menu systems and forms. These have been used on dozens

[WSG] Dilemma: Useful, additional attributes in elements, invalidating HTML

2005-03-19 Thread Sigurd Magnusson
This is a split technical/marketing dilemma for people to ponder... Over the past few years, we have built up a library of rather useful Javascript libraries that we thought were a very elegant solution for adding behaviour to menu systems and forms. These have been used on dozens of websites, a