angularjs – 如何整理角度html?

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

内容简介:翻译自: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


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

查看所有标签

猜你喜欢:

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

Database Design and Implementation

Database Design and Implementation

Edward Sciore / Wiley / 2008-10-24 / 1261.00 元

* Covering the traditional database system concepts from a systems perspective, this book addresses the functionality that database systems provide as well as what algorithms and design decisions will......一起来看看 《Database Design and Implementation》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具