过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

TreeWalker.expandEntityReferences 只读特性返回 布尔 flag indicating whether or not the children of entity reference nodes are visible to the TreeWalker .

If this value is false , the children of entity reference nodes (as well as all of their descendants) are rejected. This takes precedence over the value of the TreeWalker.whatToShow method and the associated filter.

句法

expand = treeWalker.expandEntityReferences;
					

范例

var treeWalker = document.createTreeWalker(
    document.body,
    NodeFilter.SHOW_ELEMENT,
    { acceptNode: function(node) { return NodeFilter.FILTER_ACCEPT; } },
    false
);
expand = treeWalker.expandEntityReferences;
					

规范

Document Object Model (DOM) Level 2 Traversal and Range Specification
The definition of 'TreeWalker.expandEntityReferences' in that specification.
过时 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
expandEntityReferences 弃用 Chrome 1 Edge 12 Firefox 4 — 21 IE 9 Opera 9 Safari 3 WebView Android 3 Chrome Android Yes Firefox Android 4 — 21 Opera Android 10.1 Safari iOS 3 Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

弃用。不要用于新网站。

弃用。不要用于新网站。

另请参阅

元数据

  • 最后修改: