Troubled comments in XML documents

My blog has moved.
You can view this post at the following address:
http://www.osherove.com/blog/2004/3/28/troubled-comments-in-xml-documents.html
Published Sunday, March 28, 2004 10:44 AM by RoyOsherove
Filed under:

Comments

Sunday, March 28, 2004 8:03 AM by Avner Kashtan

# re: Troubled comments in XML documents

Huh. That's nothing.
Try creating an HTML file containing no less than 96 (!) consecutive dashes, setting the encoding to Hebrew (1255) and opening it in IE6 (non-SP1). Wait 2 seconds. Crash. Repeat.

Silliest bug I've ever seen.
Sunday, March 28, 2004 11:21 AM by oleg@tkachenko.com (Oleg Tkachenko)

# RE: Troubled comments in XML documents

Yeah, that's a nasty one. In fact that's just "--" that's forbidden in comments.
Also CDATA sections can't contain characters.

But that's not a bugs, that's behaviour by design to make XML parsing easier.