Re: htmlfill and CDATA
"Jacob Smullyan" <[email protected]>
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
On 10/17/06, Ian Bicking <[email protected]> wrote: > It looks to me if htmlfill.FillingParser can implement unknown_decl, it > can handle CDATA on its own (just passing the content through). Which you've already done, so my example was irrelevant -- sorry. I jumped the gun and misdiagnosed. (Alas, when a live application goes awry, so do I.) I saw the CDATA problem in tests with HTMLParser and improperly seized on it, but the real parse error that the app itself threw was inside the script block -- markup in javascript strings. Since HTMLParser doesn't grok CDATA, it merrily rides into it and tries to parse the javascript. The simplest solution in my case seems to be to set FillingParser.CDATA_CONTENT_ELEMENTS to an empty tuple, which for some reason changes this behavior. I don't know yet whether this is a sensible default for FillingParser or not. js > > -- > Ian Bicking | [email protected] | http://blog.ianbicking.org > -- Jacob Smullyan office: 212/669-3230 mobile: 917/576-5274 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642