From 80d00ef4100af00196385ee42a50f1cbfa2ab5c7 Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 12 Oct 2021 00:54:10 +0000 Subject: [CRON] sync translated content --- .../index.html | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 files/zh-cn/conflicting/web/api/mutationobserver/observe_7e3ecc5c48e14f4ecfdbe7d3aa534870/index.html (limited to 'files/zh-cn/conflicting/web/api/mutationobserver/observe_7e3ecc5c48e14f4ecfdbe7d3aa534870') diff --git a/files/zh-cn/conflicting/web/api/mutationobserver/observe_7e3ecc5c48e14f4ecfdbe7d3aa534870/index.html b/files/zh-cn/conflicting/web/api/mutationobserver/observe_7e3ecc5c48e14f4ecfdbe7d3aa534870/index.html new file mode 100644 index 0000000000..178f35ef38 --- /dev/null +++ b/files/zh-cn/conflicting/web/api/mutationobserver/observe_7e3ecc5c48e14f4ecfdbe7d3aa534870/index.html @@ -0,0 +1,51 @@ +--- +title: MutationObserverInit.childList +slug: conflicting/Web/API/MutationObserver/observe_7e3ecc5c48e14f4ecfdbe7d3aa534870 +translation_of: Web/API/MutationObserverInit/childList +original_slug: Web/API/MutationObserverInit/childList +--- +
{{APIRef("DOM WHATWG")}}
+ +

The {{domxref("MutationObserverInit")}} dictionary's optional childList property indicates whether or not to monitor the specified node or nodes for the addition or removal of new child nodes.

+ +

If childList is false (the default), adding or removing new nodes does not trigger mutation callbacks. By setting childList to true, your callback will be invoked any time nodes are added to or removed from the DOM node or nodes being watched.

+ +

Syntax

+ +
var options = {
+  childList: true | false
+}
+
+ +

Value

+ +

A Boolean value indicating whether or not to invoke the callback function when new nodes are added to or removed from the section of the DOM being monitored.. If {{domxref("MutationObserverInit.subtree", "subtree")}} is false, only the node indicated by the observer's target node is monitored for changes. Setting subtree to true causes addition or removal of nodes anywhere within the subtree rooted at target to be reported.

+ +

Example

+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('DOM WHATWG', '#dom-mutationobserverinit-childlist', 'MutationObserverInit.childList')}}{{ Spec2('DOM WHATWG') }} 
+ +

Browser compatibility

+ +
+ + +

{{Compat("api.MutationObserverInit.childList")}}

+
-- cgit v1.2.3-54-g00ecf