0
Backbone 또는 Meteor와 같은 프레임 워크를 사용하고 EJS 템플릿에서 클라이언트의 뷰를 구성 할 때 HTML 유효성 검사에 대한 최신 생각은 무엇입니까?"text/template"요소로 EJS 템플릿을 사용하여 HTML 유효성 검사
name
은 <script>
태그에 대한 공식적인 특성이 아닙니다.
<div id="templates">
<script name="template_name" type="text/template">
<p class="summary">
<img src="<%= this.model.image() %>"/>
<br/>
<%= this.model.summary() %>
</p>
<div>
<%= this.model.content() %>
</div>
</script>
<!-- etc... -->
</div>
유효성 검사 오류가 나는이 대기 마십시오
Attribute name not allowed on element script at this point.
<script name='hover_grid' type='text/template'>
Attributes for element script:
Global attributes
src
async
defer
type
charset
이 방법을 지원하고 방어 할 경우, 또는이 마크 업이 유효 만들 수있는 방법이 :
내 코드처럼 보이는?
아, 좋은 일이라고 생각합니다. 나는 내가'id '를 시도했다고 생각했지만, 나는 그렇지 않다 ... –
아무런 문제가 없지만, 보통 간단한 대답은 눈 앞에 있지만 두뇌는 당신에게 다른 것을 말하고 있습니다 :) –