[Webkit-unassigned] [Bug 24980] New: Webkit donot support short comment tag, but gecko, trident support
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 31 21:45:06 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=24980
Summary: Webkit donot support short comment tag, but gecko,
trident support
Product: WebKit
Version: 525.x (Safari 3.2)
Platform: PC
URL: http://ejohn.org/blog/javascript-micro-templating/
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kexianbin at diyism.com
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
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list