Monday, 07 December 2009 18:46

While working on a project, I came across an interesting bug in the Firefox rendering engine involving html comments. As it turns out, it's likely related to a very old "bug" that has roots in the folks over at Mozilla following the SGML specs quite strictly. However, I think this particular implementation deserves posting due to its brevity as well as its oddity.

Click Me to see the Firefox Rendering bug

Firefox users will see a nice message inside the modal window, while other browsers will not. How was this accomplished? Take a look:

<!-- >If you can see this you are using Firefox!<!-- -->

Update: it appears IE will render the following as well:

<!-->If you can see this you are using Firefox or IE!<!-- -->
Last Updated on Monday, 07 December 2009 19:24
 
Comments (1)
1 Tuesday, 08 December 2009 03:11
claire
mmm, the all important space?

Add your comment

Your name:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Jeff Channell is not affiliated with or endorsed by Open Source Matters or the Joomla!® Project.

Santorum
Joomla Extensions