Re: [xml] parsing bug
- From: Daniel Veillard <veillard redhat com>
- To: Prashanth Naidu <prash_naidu yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] parsing bug
- Date: Mon, 25 Jun 2001 18:18:45 -0400
On Mon, Jun 25, 2001 at 11:04:01PM +0100, Prashanth Naidu wrote:
Hi
libxml2 wrongly attempts to parse text within a script block. The attached
html file is well formed, but testHTML gets into all sorts of trouble when
No can you tell us what makes you believe it is well formed ?? It is
definitely not !
it attempts to parse it.
This seems like a fairly major bug, I'm surprised it hasn't come up earlier.
Hope this is useful.
Plain wrong ! Read the specification first please before making such
assertions ! You may think libxml should parse this and I have good reason
to say it should not.
http://www.w3.org/TR/html4/appendix/notes.html#notes-specifying-data
There is an example, in a red box explaining precisely why this is WRONG.
Sorry, the page is not valid, libxml HTML parser apply the spec to the
letter in this case because script is an ugly escape mechanism and doing
it differently than the spec can lead to all sorts of errors and possibly
security problems. Fix the input if you can, it is definitely wrong.
htmlParseScript() in HTMLparser.c line 2309
You should read the specification and the code before making final
statements about something being a bug !
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]