Disambiguate when to add global event handlers (#612) · w3ctag/design-principles@41fee41
domfarolino
·
2026-02-25
·
via Recent Commits to design-principles:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2550,7 +2550,7 @@ it's important to continue to define event handler IDL attributes because:
|
2550 | 2550 | * they enable feature-detection for the supported events (see [[#feature-detect]]) |
2551 | 2551 | |
2552 | 2552 | <p class="note"> |
2553 | | -For consistency, if the event needs to be handled by HTML and SVG elements, |
| 2553 | +For consistency, if the event needs to be handled by HTML, SVG, or MathML elements, |
2554 | 2554 | add the [=event handler IDL attributes=] |
2555 | 2555 | on the {{GlobalEventHandlers}} interface mixin, |
2556 | 2556 | instead of directly on the relevant element interface(s). |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。