collective / i18ndude

i18ndude performs various tasks related to ZPT's, Python Scripts and i18n.
https://pypi.org/project/i18ndude
4 stars 9 forks source link

Accept <div> inside <a> #78

Closed pnicolli closed 4 years ago

pnicolli commented 4 years ago

While going through some templates I got this error: OpenTagError: Tag <div> is not allowed in <a>

I don't like having a div inside an a element, but in real life we get this from time to time. HTML5 allows it, so I would say we should not make this an error.

mauritsvanrees commented 4 years ago

Since this error is raised in zope.tal, I suggest opening an issue there. I don't think we can work around it here.