什么是加载外部资源的 HTML 元素列表?(HTML 电子邮件) [英] What is a list of HTML elements that load external resources? (HTML Email)

查看:25
本文介绍了什么是加载外部资源的 HTML 元素列表?(HTML 电子邮件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果不允许通过 JavaScript 进行额外的 DOM 操作,我正在寻找可以加载外部资源的元素列表.我正在尝试使用 HTML 查看器托管来自第三方的电子邮件,当发生这种情况时,我需要删除任何自动加载的资源,以便仅显示基本 HTML,即使这会导致内容显示不正确.

I'm looking for a list of elements that can load external resources given no additional DOM manipulation via JavaScript is allowed. I am trying to host e-mails from third parties with an HTML viewer and when that happens, I need to remove any resources that load automatically so that only the base HTML is displayed even if that makes the content show up incorrectly.

目前的名单是:

<img />
<embed />
<object />
<link />
<script />
<audio />
<video />
<style type="text/css">selector { property: uri('') }</style>

我是否需要考虑其他任何元素或模式以防止加载第三方资源.而且,是的,我熟悉沙箱属性,但我们也需要对旧浏览器的支持.

Are there any other elements or patterns I need to take into account to prevent third-party resources from being loaded. And, yes, I am familiar with the sandbox attribute, but we require support for older browsers as well.

推荐答案

具有普遍支持,并且是在电子邮件中引用外部图像的标准.也可以使用 url:www.website.com/image.jpg