过时
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. |
过时 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持
不支持
弃用。不要用于新网站。
TreeWalker
.
TreeWalker
currentNode
expandEntityReferences
filter
root
whatToShow
AbortController
AbortSignal
AbstractRange
Attr
ByteString
CDATASection
CSSPrimitiveValue
CSSValue
CSSValueList
CharacterData
ChildNode
注释
CustomEvent
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMImplementation
DOMImplementationList
DOMImplementationRegistry
DOMImplementationSource
DOMLocator
DOMObject
DOMParser
DOMPoint
DOMPointInit
DOMPointReadOnly
DOMRect
DOMString
DOMTimeStamp
DOMTokenList
DOMUserData
Document
DocumentFragment
DocumentType
元素
ElementTraversal
Entity
EntityReference
事件
EventTarget
HTMLCollection
MutationObserver
节点
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
ProcessingInstruction
PromiseResolver
范围
StaticRange
文本
TextDecoder
TextEncoder
TimeRanges
TypeInfo
USVString
UserDataHandler
XMLDocument