Skip to content

Commit e8a9f67

Browse files
authored
Add Event's cancelBubble attribute
More delightful garbage from the past. Tests: web-platform-tests/wpt#4304. Fixes #211.
1 parent e2bd481 commit e8a9f67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dom.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ interface Event {
511511
readonly attribute unsigned short eventPhase;
512512

513513
void stopPropagation();
514+
attribute boolean cancelBubble; // historical alias of .stopPropagation
514515
void stopImmediatePropagation();
515516

516517
readonly attribute boolean bubbles;
@@ -718,6 +719,12 @@ flags that are all initially unset:
718719
<p>The <dfn method for=Event><code>stopPropagation()</code></dfn> method, when invoked, must set the
719720
<a>context object</a>'s <a>stop propagation flag</a>.</p>
720721

722+
<p>The <dfn attribute for=Event><code>cancelBubble</code></dfn> attribute's getter must return true
723+
if <a>context object</a>'s <a>stop propagation flag</a> is set, and false otherwise.
724+
725+
<p>The {{Event/cancelBubble}} attribute's setter must set <a>context object</a>'s
726+
<a>stop propagation flag</a> if the given value is true, and do nothing otherwise.
727+
721728
<p>The <dfn method for=Event><code>stopImmediatePropagation()</code></dfn> method, when invoked,
722729
must set <a>context object</a>'s <a>stop propagation flag</a> and <a>context object</a>'s
723730
<a>stop immediate propagation flag</a>.</p>

0 commit comments

Comments
 (0)