angularjs – 如何整理角度html?

栏目: Html · 发布时间: 7年前

内容简介:翻译自:https://stackoverflow.com/questions/38981540/how-to-tidy-angular-html
我正在使用brew中的tidy- html5

,我无法整理我的角度模板,因为他们使用自定义元素:

<due-diligence-point index="1" title="Lead Screening">

这会在tidy-html5上抛出此错误:

line 26 column 9 - Error: <due-diligence-point> is not recognized!

有一个选项我正在跳过,或者这只是不适合整洁?

我唯一的选择是手动填充“new-empty-tags”?

在这里参加派对的时间已经很晚了,但是您是否尝试使用’data-‘标签为元素添加前缀?以下是HTML5验证器的成功.

<!DOCTYPE html>
<html>
<head><title>asdf</title></head>
<data-custom-tag></data-custom-tag>
</html>

如果删除数据前缀,则会将错误作为无法识别的元素抛出.

翻译自:https://stackoverflow.com/questions/38981540/how-to-tidy-angular-html


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Learn Python the Hard Way

Learn Python the Hard Way

Zed A. Shaw / Addison-Wesley Professional / 2013-10-11 / USD 39.99

Master Python and become a programmer-even if you never thought you could! This breakthrough book and CD can help practically anyone get started in programming. It's called "The Hard Way," but it's re......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

随机密码生成器
随机密码生成器

多种字符组合密码