Re: [xml] HTMLparser: comments in <style> element
- From: Michael Day <mikeday yeslogic com>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] HTMLparser: comments in <style> element
- Date: Mon, 09 Apr 2007 20:35:36 +1000
Hi Daniel,
http://www.w3.org/TR/html4/types.html#type-cdata
says nothing about comments, sone one supposedly must know SGML specific
on the topic and sorry I never studied SGML. If you have pointer to a
description explaining that comments are not to be interpreted in CDATA
a patch should be easy to design.
I think this covers it:
"Although the STYLE and SCRIPT elements use CDATA for their data model,
for these elements, CDATA must be handled differently by user agents.
Markup and entities must be treated as raw text and passed to the
application as is."
"Markup" includes comments and processing instructions as well as tags.
Admittedly, it could be more explicit, but that's consistent with CDATA
sections in XML, and also consistent with web browser behaviour.
Best regards,
Michael
--
Print XML with Prince!
http://www.princexml.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]