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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to