Skip to content

Instantly share code, notes, and snippets.

@phiggins42
Created January 4, 2011 18:15
Show Gist options
  • Save phiggins42/765149 to your computer and use it in GitHub Desktop.
Save phiggins42/765149 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!-- heres the trigger (note this single hypen &gt doesn't trigger it)-> -- // anything omg > this should not be -->
<html>
<head><title>b0rken</title></head>
<body>seen</body>
<!-- heres another across multiple lines.
--
lots of stuff inbetween a doublehypen on line 8 and a gt on on line 13. lame.
>
should still be hidden.
-->
</html>
@phiggins42
Copy link
Author

FF finds any "--" in a commentnode and ends the commentnode whenever the NEXT > is encountered. even across multiple lines. The text

"should not be --> seen should still be hidden. -->" appears in the element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment