Re: [xml] BUG?



On Mon, Dec 08, 2008 at 10:34:06AM -0500, Mary Albanese wrote:
<html>
<head></head>
<body>
<h1><<br>PROBLEM CASE<br><h1>
<span>
<script language="javascript">

        document.write('<span>Shop Products</span>');

</script>
</span>
</body>
</html>

  I suggest you look at the output of 
  xmllint --debug document.html

assuming you used XML parsing... It will show you the structure of
the document you parsed. And then will probably help understanding
the output you're getting.

  Please also read
    http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.2.1
concerning HTML script rules and why that document doesn't do what
you're expecting even when parsing with HTML.

  In nutshell: document broken beyond recovery possible.
  Suggestion: fix the document(s)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]