[ZCM] [ZC] 2200/ 5 Edit "HTTPResponse.insertBase does not detect multiline base tags"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2200 Update (Edit) "HTTPResponse.insertBase does not detect multiline base tags"
Status Pending, Zope/bug+solution low
To followup, visit:
http://www.zope.org/Collectors/Zope/2200
==============================================================
= Edit - Entry #5 by tseaver on Dec 19, 2006 2:16 pm
Changes: topic (ZServer => Zope), new comment
This bug is related to ZPublisher, not ZServer.
________________________________________
= Edit - Entry #4 by ajung on Oct 8, 2006 4:46 am
Changes: submitter email, edited transcript, importance (medium => low)
________________________________________
= Comment - Entry #3 by sbunse on Oct 3, 2006 8:13 am
my main template contains the navigation (with flash movies) and an iframe tag which loads the actual content. to make all links target the iframe i want to send <base href="#" target="content-frame" />.
but i found no (clean) way to make tal render the whole tag on one line and imho it's valid (x)html to spread a base tag over multiple lines.
________________________________________
= Comment - Entry #2 by ajung on Oct 3, 2006 2:34 am
Why do you have to generate the BASE tag on your own. There is usually absolutely no need to do anything with the BASE tag. This is up to Zope!
________________________________________
= Request - Entry #1 by sbunse on Oct 2, 2006 7:41 pm
My PageTemplates generate a multiline base tag which is not detected by the HTTPResponse so it adds a second base tag which in turn is invalid xhtml.
the corresponding regex is in ZPublisher.HTTPResponse, line 474:
base_re_search=re.compile('(<base.*?>)',re.I).search
to make it detect my multiline base tag i changed it to:
base_re_search=re.compile('(<base[^>]*?>)',re.I|re.M).search
and it works.
==============================================================