DocumentType: systemId 屬性
DocumentType 的只讀屬性 systemId 返回關聯 DTD 的 URL。
對於人工(synthetic)建立的 DocumentType,此屬性反映在 DOMImplementation.createDocumentType() 中作為引數傳入的值。
值
字串。
示例
js
const docType = document.implementation.createDocumentType(
"svg",
"",
"http://www.w3.org/2000/svg",
);
console.log(docType.systemId); // Displays "http://www.w3.org/2000/svg"
規範
| 規範 |
|---|
| DOM # dom-documenttype-systemid |
瀏覽器相容性
載入中…