- From: <bugzilla@jessica.w3.org>
- Date: Tue, 18 Aug 2015 02:17:33 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28832 Nick Levinson <Nick_Levinson@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX |--- --- Comment #5 from Nick Levinson <Nick_Levinson@yahoo.com> --- I'm reopening, while acknowledging that the priority may get lowered, because I found several implementations of the concept, albeit inconsistent ones. Probably the best format would be this opening tag: <!--! To begin the comment content itself with an exclamation point and not a space, the author would write a double exclamation point. Whether to separate the opening tag from the content with a space would be unaffected. The closing tag would be unaffected. Here are implementations I found, in order of utility for consideration for HTML5: htmlmin 0.1.6 (thus, by convention, beta): "When set, comments will be removed. They can be kept on an individual basis by starting them with a '!' . . . . The '!' will be removed from the final output. If you want a '!' as the leading character of your comment, put two of them . . . ." https://pypi.python.org/pypi/htmlmin/ & https://github.com/mankyd/htmlmin > "Download ZIP" > htmlmin-master.zip > docs > quickstart.rst > optional arguments > "-c, --remove-comments", both as accessed Aug. 15, 2015. HTML compressor: Follow the standard comment opening tag by any one user-specified character to preserve that comment (<https://htmlcompressor.com/compressor/> > Source > show > Comments, CSS and JavaScript > "Keep . . ." > "(?)", as accessed Aug. 15, 2015), i.e., the Web page author may specify a character and put it immediately after the opening tag to preserve the comment that has the specified character. html-minifier (by kangax): "If you have chunks of markup you would like preserved, you can wrap them". Inside the comment would appear the string htmlmin:ignore (but unclear where inside the comment). <https://github.com/kangax/html-minifier>, as accessed July 14, 2015. "[T]here's a slight difference in the way HTML comments are treated inside SCRIPT and STYLE elements. In scripts, comment start delimiter ('<!-<span></span>-') tells parser to ignore everything until newline" <http://perfectionkills.com/experimenting-with-html-minifier/>, as accessed Jul. 15, 2015. gulp-minify-html can decline to minify "conditional internet explorer comments". <https://www.npmjs.com/package/gulp-minify-html>, as accesssed Jul. 24, 2015. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Tuesday, 18 August 2015 02:17:39 UTC