Metal:fill-slot *always* returns a <span>?
Hi there, I have a "master template" with a slot definition like this: <!-- Main Content Area is HERE --> <div metal:define-slot="main"></div> <!-- Main Content Area ends HERE --> And another template which attempts to fill it with something like: <div metal:fill-slot="main" tal:define="childtopics python: here.aq_parent.getChildTopics(); childmaps python: here.aq_parent.getChildMaps(); topicmode python: len(childtopics) > 0;"> <h1 tal:content="here/Title"></h1> Now for some reason I can't figure out, the end result ALWAYS has <span> tags surrounding the content of the slot, despite the fact I say here they shoul dbe "div"'s ... <!-- Main Content Area is HERE --> <span> <h1>Freshwater</h1> I've tried other things like: <div metal:define-slot="main" /> Or <metal:define-slot metal:define-slot="main" /> But no matter what I do, there's a span, even when everything says "div". This is a problem because the end HTML does not validate, and I work in a rather large organization that requires it's HTML content to validate ... I've tried looking through the TAL/PageTemplates code, but without much success ... What am I missing here? Is this a bug/misfeature? Could any one point to the source code that handles this? Thanks, Jean-François Doyon Internet Service Development and Systems Support / Spécialiste de dèveloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de télédétection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./Tél.: (613) 992-4902 Fax: (613) 947-2410
Doyon, Jean-Francois wrote:
What am I missing here? Is this a bug/misfeature? Could any one point to the source code that handles this?
I've never seen this before, my guess would be that whatever you're filling that slot with isn't what you think it is ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Doyon, Jean-Francois wrote at 2006-5-5 17:47 -0400:
... Now for some reason I can't figure out, the end result ALWAYS has <span> tags surrounding the content of the slot, despite the fact I say here they shoul dbe "div"'s ...
Usually, this means, that the active code it taken from a location different from where you expect (and that this location uses "span"). -- Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Doyon, Jean-Francois