【发布时间】:2012-12-16 14:01:54
【问题描述】:
在模板文件中,我是这样写的
% for name,sequence in NAME_SEQUENCE:
<form id="ucsc_profile_form${sequence_counter}"
action="${request.route_path('CF_profile_UCSC_adapter')}"
method="GET" target="_blank">
<input type="hidden" value="${species_short}" name="species">
<input type="hidden" value="${chrom}" name="chrom">
<input type="hidden" value="${start}" name="start">
</form>
....
% endfor
但是当我使用firebugs 来检查 html 代码时,它们是这样呈现的:
<form id="ucsc_profile_form1" action="${request.route_path('CF_profile_UCSC_adapter')}" method="GET" target="_blank">
</form>
<input type="hidden" value="${species_short}" name="species">
<input type="hidden" value="${chrom}" name="chrom">
<input type="hidden" value="${start}" name="start">
奇怪的是<input>元素变成了<form>..
可以查看原页面here,虽然DOM结构看起来不对,但是表单的元素还是可以提交的..
有人对此有想法吗?
【问题讨论】:
-
您的
<input>标签永远不会关闭。这有什么不同吗? -
@BuhakeSindi 我不这么认为。因为 W3Cshool 中的示例也没有关闭.. w3schools.com/tags/tag_input.asp
-
奇怪,你确定你的网络服务器没有提供旧版本的模板吗?
标签: html templates dom browser web