[英]How to ignore some HTML tags in JSLint?
我正在使用“ nobr” HTML标记来避免表单中的换行符,但是,JSLint给了我错误
是否可以使JSLint忽略某些HTML标记?
谢谢
JSLint没有提供执行此操作的方法,但是如果您能够,那么修改代码并将必要的标记添加到列表非常简单:
html_tag = { a: {}, // etc... add yours in here }
但是,请注意,在最新版本的JSLint中已删除了HTML解析,因此我建议您升级而不使用设计用于验证JavaScript的工具来验证标记。
[英]How to make RegExps ignore some tags
[英]How to supress/ignore JSLINT error/warning for @ or at sign?
[英]How to make JSLint ignore pieces of code?
[英]Datatables - how to ignore HTML tags for sorting?
[英]How to ignore HTML tags in innerHTML attribute?
[英]jslint ignore Expected '{' errors
[英]JSLint to ignore undefined variables
[英]How to correctly handle some html tags?
[英]How to store arbitrary data for some HTML tags
[英]How to create a JSLint ignore comment block in the Notepad++ plugin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.