Posted by Jim Higson on 11/22/59 11:41
Siah wrote:
> Hi,
>
> I am creating a web application, and have some custom attributes added.
> My site works just fine and although it fails validation, I haven't
> found enough motivation to spend time and validate it's DTD. Can anyone
> provide me with some reason why I should invest such time?
Maybe you should at least put the attributes in your own namespace. That way
you clearly mark them as custom.
What are your custom attributes for? Inventing your own attributes isn't
very often needed. However...
<confession>
I sometimes put a "regex" attribute on form elements to validate user input
against using Javascript (I also validate against the same regex server
side).
</confession>
I'll probably change this one day.
--
Jim
Navigation:
[Reply to this message]
|