W3C home > Mailing lists > Public > www-archive@w3.org > April 2003

How Internet Explorer for Windows 6.0 recognizes comments

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 07 Apr 2003 04:05:29 +0200
To: www-archive@w3.org
Message-ID: <3ea2d5d6.163724122@smtp.bjoern.hoehrmann.de>

Hi,

  Comments start at least with <!, special cases for <!DOCTYPE, <![...,
etc.

  if ( there is an opening "--" ) /* <!-- */
    if ( finds following "-->" )  /* <!-->>>--> */
      next "-->" closes comment
    else
      next ">" closes comment     /* <!--> */
  else                            /* <!foo>, <!>, <!-foo-->, ... */
    next ">" closes comment

Improperly formed comments are not exposed through DOM.
Received on Sunday, 6 April 2003 22:05:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:29 GMT