[ZPT] Attribute case confuses TAL

Jean Jordaan jean@upfrontsystems.co.za
Wed, 31 Jul 2002 16:16:19 +0200


Hi all 

This TAL code::

  <a href="target"
     onMouseOver="triggerTabBar('p7topmenu1')"
     tal:attributes="href menu/url; 
                     onMouseOver string:triggerTabBar('${menu_id}')"
     tal:content="menu/title">TITLE</a>

generates this HTML::

  <a href="main.html"
     onMouseOver="triggerTabBar('p7topmenu1')"
     onmouseover="triggerTabBar('p7topmenu5')">Main</a>

This leaves most browsers pretty nonplussed (Opera figures it out
somehow). 

I think TAL should lowercase attribute names when matching and 
replacing. (Preserving case when replacing might be prettier, but I 
don't know if it's worth the trouble .. )

PageTemplates-1-4-0

-- 
Jean Jordaan
Upfront Systems                         http://www.upfrontsystems.co.za