Webkit does not support short comment tag, but gecko, trident support it, maybe this is not a bug, but it's more important than a bug in the web 2.0 world, we jquery guys are building a browser side template engine with javascript as below, in firefox or ie, we can use short comment tag "<!" as template starting tag, but in safari or chrome we can only use long comment tag "<!--", so it's annoying: <div id="test1" class="users"><br> <!for (i=0;i<users.length;++i){!> Name:<a href="<!=users[i].name!>"><!=users[i].name!></a><br> <!}!> </div> <script> var data={users:[{name:'name1'}, {name:'name2'} ] }; $('#test1').drink(data); </script> javascript template rending engine is at this place: http://plugins.jquery.com/project/micro_template
As per WHATWG standard, only <!-- --> is allowed: https://html.spec.whatwg.org/multipage/syntax.html#comments I am marking this as "RESOLVED WONTFIX", if I am incorrect or linked to incorrect Web-Spec, please ignore my comment and reopen this. Thanks!
This works in WebKit now. This HTML5 link above is contains author requirements, it says that documents must be using <!-- as comments. But browser behavior is a lot more complicated, and <! actually works. One would have to follow the algorithm in https://html.spec.whatwg.org/multipage/parsing.html#tokenization to see it standardized.
Great, I can confirm jquery_micro_template(https://github.com/diyism/jquery_micro_template) works on google chrome 100+
Re-opening for pull request https://github.com/WebKit/WebKit/pull/8021
(In reply to Chris Dumez from comment #4) > Re-opening for pull request https://github.com/WebKit/WebKit/pull/8021 I think this was reopened by mistake since the PR refers to bug 249808. Closing this again.