tal:attributes fails with error in image tag

Bug #142029 reported by Bug Importer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Low
alan

Bug Description

<img tal:replace="structure container/images/image.gif" tal:attributes="border string:1">

i get the following error when i load the page

Error Type: AttributeError
Error Value: Context instance has no attribute 'getCompilerError'

i've been using the tag method as a work around, but people have told me that this tag *should* work as is, hence this bug report.

Tags: bug zope
Revision history for this message
Evan Simpson (evan-4-am) wrote :

Status: Pending => Resolved

Fixed in trunk and 2.6 branch of CVS

Revision history for this message
alan (alanwilter) wrote :

This bug is back in Plone 3.2.1 Zope 2.10.7

test.pt:
<metal:macro metal:define-macro="page">
<body>
        <img tal:replace="structure container/logo" tal:attributes="width python:40; height python: 40">
        <img src="logo" alt="" title="" height="40" width="40" />
</body>
</metal:macro>

Error:
AttributeError: 'ZopeContext' object has no attribute 'getCompilerError'

Changed in zope2:
assignee: nobody → alanwilter
status: Fix Released → Incomplete
Changed in zope2:
status: Incomplete → Confirmed
Revision history for this message
Tres Seaver (tseaver) wrote :

Mixing 'tal:replace' and 'tal:attributes' on the same tag is lunacy.

Changed in zope2:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.