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

Yoann FAYOLLE 621220 at bugs.launchpad.net
Sat Aug 21 12:23:02 UTC 2010


Hello,
I forgot to report it to Mozilla just after my report here ... But now it's done.
Here it is :
https://bugzilla.mozilla.org/show_bug.cgi?id=589433

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.

** Bug watch added: Mozilla Bugzilla #589433
   https://bugzilla.mozilla.org/show_bug.cgi?id=589433

** Description changed:

  Binary package hint: firefox
  
  Hello,
  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:1.9.2.8) 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 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.
+ 
+ 
  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 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-24-generic i686
  Architecture: i386
  Date: Fri Aug 20 17:05:38 2010
  FirefoxPackages:
   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
  ProcEnviron:
   LANG=fr_FR.utf8
   SHELL=/bin/bash
  SourcePackage: firefox

** Description changed:

  Binary package hint: firefox
  
  Hello,
  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:1.9.2.8) 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 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 :
+ https://bugzilla.mozilla.org/show_bug.cgi?id=589433
  
  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 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-24-generic i686
  Architecture: i386
  Date: Fri Aug 20 17:05:38 2010
  FirefoxPackages:
   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
  ProcEnviron:
   LANG=fr_FR.utf8
   SHELL=/bin/bash
  SourcePackage: firefox

** Attachment removed: "HTML code showing the bug."
   https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/621220/+attachment/1504394/+files/test.html

-- 
buggy HTML comment tag when HTML4 strict
https://bugs.launchpad.net/bugs/621220
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