[ZPT] Default tal/tales namespaces in HTML parser

Guido van Rossum guido@digicool.com
Tue, 10 Apr 2001 20:36:13 -0500


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?

--Guido van Rossum (home page: http://www.python.org/~guido/)