[Bug 621220] Re: buggy HTML comment tag when HTML4 strict

Yoann FAYOLLE 621220 at bugs.launchpad.net
Sat Aug 21 12:31:28 UTC 2010

Nevermind, the attached HTML code example was altered.

Here is the correct version.

The BUG is still present.

** Attachment added: "HTML code showing the bug (THE GOOD VERSION)."

** Description changed:

  Binary package hint: firefox
  I don't know wether I should report this bug to Canonical or to Mozilla, so I'm going to do both.
  = System information =
  Mozilla/5.0 (X11; U; Linux i686; fr; rv: Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8
  = Bug Description =
  In an HTML4 strict page, the HTML comment Tag behaves innapropriatelly.
  This tag <!-- (lower than, exlamation mark, minus, minus) marks the beginning of a comment
  but, if my comment contains -- (twice minus) in the middle of it,
  then, the actual end of comment tag (twice minus, greater than) will be skipped -->
  And all the text and HTML code following the supposed end of comment will be included into this comment.
  The comment will remains opened till the end of a next comment, or till the next comment contains the > (greater than) symbol.
- See and test the attached source code.
+ See and test the attached source code (THE GOOD VERSION IS HERE : https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/621220/+attachment/1507958/+files/test.html).
  See the screen capture of the FF "source code of the page".
- Notes : I also noticed there is a difference if the code given as example (see the attached example) is displayed from an .html page or from a .php page.
- When from a .php page, the behavior is the same as described in my report.
- When from a .html page, the first comment ends at the end of the seconds comment and not at the first > (greater than) symbol.
- Anyway, there is still a bug with the comment tag.
  Bugzilla report available here :
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: firefox 3.6.8+build1+nobinonly-0ubuntu0.10.04.1
  ProcVersionSignature: Ubuntu 2.6.32-24.41-generic
  Uname: Linux 2.6.32-24-generic i686
  Architecture: i386
  Date: Fri Aug 20 17:05:38 2010
   firefox 3.6.8+build1+nobinonly-0ubuntu0.10.04.1
   firefox-gnome-support 3.6.8+build1+nobinonly-0ubuntu0.10.04.1
   firefox-branding 3.6.8+build1+nobinonly-0ubuntu0.10.04.1
   abroswer N/A
   abrowser-branding N/A
  SourcePackage: firefox

buggy HTML comment tag when HTML4 strict
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in ubuntu.

More information about the Ubuntu-mozillateam-bugs mailing list