[ZPT] Default tal/tales namespaces in HTML parser
richard@bizarsoftware.com.au
richard@bizarsoftware.com.au
Wed, 11 Apr 2001 10:44:03 +1000
Guido van Rossum wrote:
>
> I feel that I should owe up a property of the HTML TAL implementation
> that's not in the TAL an TALES specs. While the XML parser requires
> that you declare all namespaces before you can use them, the HTML
> parser pre-initializes its namespaces with declarations for the "tal:"
> and "tales:" prefixes, so that you can start using tal and tales
> attributes right away.
>
> I find this both convenient (saves two lines of junk in each template)
> and helpful for consistency (everybody will tend to use "tal:" and
> "tales:" for their prefixes, aiding code portability), but it is
> probably in violation of some HTML standard.
>
> Should I take it out?
Please only take it out if it actually does violate a standard. I find it
quite convenient.
Richard
--
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)