Michael Brooks <firealwayswo...@gmail.com> added the comment: Oah, then there is a misunderstanding. No browser will parse the html that is declared within a javascript variable, it must be treated as a continues data segment (with cdata properties) until the exit </\s*script\s*> is encountered (and if this tag found anywhere, even in a quoted string it will still terminate this data segment, because its a cdata element). The snip of html provided must only be a single data segment. </ alone is not a proper terminator.
Thu, Nov 17, 2011 at 11:17 AM, Ezio Melotti <rep...@bugs.python.org> wrote: > > Ezio Melotti <ezio.melo...@gmail.com> added the comment: > > It already behaves like a browser, it just gives you data in chunks > instead of calling handle_data() only once at the end. The documentation > is not clear about this though. It says that feed() can be called several > times, but it doesn't say that handle_data() (and possibly other methods) > might get called more than once. This seems to always be the case while > calling feed() several times. > > ---------- > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue13358> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13358> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com