in reply to Re^3: Thinking Aloud About HTML::Template
in thread Thinking Aloud About HTML::Template

What's the problem with non-valid attributes? A web browser that doesn't recognise an attribute will ignore it - exactly what you want.

In a word, "validation". A web-developer doesn't want to validate a document and skip 43 "invalid attribute" warnings.

Also you might want to use XHTML, where invalid code would choke an XML Parser or an XSLT transformation entirely.

My point about Seamstress is that it uses valid attributes, that is, the "ID" attribute, to do the same thing. Unless I totally missed the point in my quick look.



($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
  • Comment on Re^4: Thinking Aloud About HTML::Template

Replies are listed 'Best First'.
Re^5: Thinking Aloud About HTML::Template
by grantm (Parson) on Aug 02, 2004 at 08:12 UTC

    Since the special attributes used by Petal are in their own namespace, it would be pretty easy to strip them out before submitting the template to a validator. But it's rather a bogus argument since the thing you want to validate is the output from a template processor, not the input. I recommended Petal because in my experience it plays nicely with GUI authoring tools.