From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/event/bubbles/index.html | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 files/ja/web/api/event/bubbles/index.html (limited to 'files/ja/web/api/event/bubbles') diff --git a/files/ja/web/api/event/bubbles/index.html b/files/ja/web/api/event/bubbles/index.html new file mode 100644 index 0000000000..1bf129ebc6 --- /dev/null +++ b/files/ja/web/api/event/bubbles/index.html @@ -0,0 +1,90 @@ +--- +title: Event.bubbles +slug: Web/API/Event/bubbles +tags: + - API + - Bubbling + - DOM + - DOM Events + - Event + - Event Handling + - Propagation + - Property + - Read-only + - Reference + - bubbles + - プロパティ + - 読取専用 +translation_of: Web/API/Event/bubbles +--- +
{{ ApiRef("DOM") }}
+ +

bubbles は {{domxref("Event")}} インターフェイスの読み取り専用プロパティで、イベントが DOM をバブリングするかしないかを示します。

+ +
+

メモ: バブリングについての詳細は、イベントのバブリングとキャプチャを参照してください。

+
+ +

構文

+ +
var doesItBubble = event.bubbles;
+ +

+ +

booltruefalseであり、イベントがバブリングするものかどうかを示しています。

+ +

+ +
function handleInput(e) {
+  // Checks whether the event bubbles and ...
+  if (!e.bubbles) {
+    // ... passes the event along if does not
+    passItOn(e);
+  }
+
+  // Already bubbling
+  doOutput(e);
+}
+
+ +
+

メモ: 一部のイベントだけがバブリングします。バブリングするイベントでは、このプロパティが true に設定されています。イベントがバブリングするかどうかを確認するためにこのプロパティを使用することができます。

+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('DOM WHATWG', '#dom-event-bubbles', 'Event.bubbles')}}{{ Spec2('DOM WHATWG') }}
{{SpecName('DOM2 Events', '#Events-Event-canBubble', 'Event.bubbles')}}{{ Spec2('DOM2 Events') }}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.Event.bubbles")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf