[fpc-devel] Possible bug in fcl-xml

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri Feb 25 09:27:14 CET 2011



On Thu, 24 Feb 2011, Leonardo M. Ramé wrote:

> Hi, I need to parse a web page that contains some complex scripting, and I'm getting this an EDOMError in DOMDocument.CreateElement.
>
> Inspecting the tagName param from TDOMDocument.CreateElement(const tagName: DOMString), I found the parser can't understand this line:
>
> document.write('<scr'+'ipt type="text/javascript" src="' + dtmtag + '"></scr'+'ipt>');
>
> I attached the problematic document for you to test it. It looks like a bug in sax_html.pp.
>
> Now, is there a way to tell the parser to ignore some tags?, for example, here I would like to ignore the tag "<script>...</script>".

I have no knowledge of such a way, and I doubt it would help you, since
it seems like this is a bug in the THTMLReader. Please file a bug report,
with the attached HTML file to test on.

Michael.


More information about the fpc-devel mailing list