Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html 表格单元格内使用<br>换行 #271

Open
yzqzss opened this issue Jun 10, 2022 · 2 comments
Open

html 表格单元格内使用<br>换行 #271

yzqzss opened this issue Jun 10, 2022 · 2 comments

Comments

@yzqzss
Copy link

yzqzss commented Jun 10, 2022

原始html:

<table><thead><tr><td>SDK 名称</td><td>功能</td><td>采集个人信息类型及目的</td><td>开发者及隐私政策</td></tr></thead><tbody><tr><td>Agoo SDK</td><td>提供消息推送的通道</td><td><p>收集设备品牌、型号、联网状态,对消息推送方式、目标系统进行适配。</p><p>使用 utdid 组件,仅在应用本地获取</p><p>AndroidID 标识设备,用来辅助客户端鉴别。</p></td><td><p>开发者:淘宝(中国)软件有限公司;</p><p>隐私政策:</p><p><a href="https://terms.alicdn.com/legal-agreement/terms/suit_bu1_taobao/suit_bu1_taobao201703241622_61002.html">https://terms.alicdn.com/legal-agreement/terms/suit_bu1_taobao/suit_bu1_taobao201703241622_61002.html</a></p></td></tr><tr><td>反劫持 SDK</td><td><p>提供反劫持技术,解决网络域名异常与域名劫持问题</p></td><td><p>无,纯技术组件。</p><p>仅在本地获取网络状态判断域名情况。</p></td><td><p>开发者:阿里云计算有限公司;</p><p>隐私政策:</p><p><a href="http://terms.aliyun.com/legal-agreement/terms/suit_bu1_ali_cloud/suit_bu1_ali_cloud201902141711_54837.html">http://terms.aliyun.com/legal-agreement/terms/suit_bu1_ali_cloud/suit_bu1_ali_cloud201902141711_54837.html</a></p></td></tr></tbody></table>

毛线转化的 markdown:

| SDK名称 | 功能 | 采集个人信息类型及目的 | 开发者及隐私政策 |
| --- | --- | --- | --- |
| Agoo SDK | 提供消息推送的通道 | 
收集设备品牌、型号、联网状态,对消息推送方式、目标系统进行适配。

使用utdid组件,仅在应用本地获取

AndroidID标识设备,用来辅助客户端鉴别。

 | 

开发者:淘宝(中国)软件有限公司;

隐私政策:

[https://terms.alicdn.com/legal-agreement/terms/suit\_bu1\_taobao/suit\_bu1\_taobao201703241622\_61002.html](https://terms.alicdn.com/legal-agreement/terms/suit_bu1_taobao/suit_bu1_taobao201703241622_61002.html)

 |
| 反劫持SDK | 

提供反劫持技术,解决网络域名异常与域名劫持问题

 | 

无,纯技术组件。

仅在本地获取网络状态判断域名情况。

 | 

开发者:阿里云计算有限公司;

隐私政策:

[http://terms.aliyun.com/legal-agreement/terms/suit\_bu1\_ali\_cloud/suit\_bu1\_ali\_cloud201902141711\_54837.html](http://terms.aliyun.com/legal-agreement/terms/suit_bu1_ali_cloud/suit_bu1_ali_cloud201902141711_54837.html)

 |

预期:

  • 单元格中应使用<br>来换行
@linlinzzo
Copy link

根据HTML 5 <br /> 标签<br>是错误的,应该为<br />

@yzqzss
Copy link
Author

yzqzss commented Jun 19, 2022

根据HTML 5
标签

是错误的,应该为

正经人谁用 XHTML 啊,即使你写<br/>或者 <br />,浏览器也会当成<br>处理(因为大家都被XHTML这个标准搞混了,导致现在放弃这个标准后,浏览器还要做做错误兼容)。w3school.com.cn 的资料不能看,HTML5 现行标准里仍然推荐<br>这种写法,只是为了给 XHTML 标准打扫残局,接纳了 <br /> 这种写法。HTML 终究不是标准的 XML 。

Void elements in HTML (e.g. the <br>, <img> and <input> elements) do not require a trailing slash. e.g. Instead of writing <br />, you only need to write <br>. This is the same as in HTML4. However, due to the widespread attempts to use XHTML1, there are a significant number of pages using the trailing slash. Because of this, the trailing slash syntax has been permitted on void elements in HTML in order to ease migration from XHTML1 back to HTML. ——https://github.com/whatwg/html/blob/main/FAQ.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants