DocumentType:systemId 属性
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
DocumentType
接口的 systemId
只读属性返回关联 DTD 的 URL。
对于合成的 DocumentType
,此属性将反映 DOMImplementation.createDocumentType()
参数中给出的值。
值
字符串。
示例
js
const docType = document.implementation.createDocumentType(
"svg",
"",
"http://www.w3.org/2000/svg",
);
console.log(docType.systemId); // “http://www.w3.org/2000/svg”
规范
Specification |
---|
DOM> # dom-documenttype-systemid> |
浏览器兼容性
Loading…