Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Web/API/Event/Comparison_of_Event_Targets #33644

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
unify {{Non-standard_Inline}} macro usage
  • Loading branch information
leon-win committed May 14, 2024
commit 4a78d60897b4bd6a0f0519ee4c3a4c023ad2edab
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ There are five targets to consider:
<a href="https://searchfox.org/mozilla-central/source/dom/webidl/Event.webidl">Event.webidl</a>
</td>
<td>
{{ Non-standard_inline() }} If the event was retargeted for some reason other than an anonymous boundary crossing, this will be set to the target before the retargeting occurs. For example, mouse events are retargeted to their parent node when they happen over text nodes ([Firefox bug 185889](https://bugzil.la/185889)), and in that case <code>.target</code> will show the parent and <code>.explicitOriginalTarget</code> will show the text node.<br />
{{Non-standard_Inline}} If the event was retargeted for some reason other than an anonymous boundary crossing, this will be set to the target before the retargeting occurs. For example, mouse events are retargeted to their parent node when they happen over text nodes ([Firefox bug 185889](https://bugzil.la/185889)), and in that case <code>.target</code> will show the parent and <code>.explicitOriginalTarget</code> will show the text node.<br />
Unlike <code>.originalTarget</code>, <code>.explicitOriginalTarget</code> will never contain anonymous content.
</td>
</tr>
Expand All @@ -70,7 +70,7 @@ There are five targets to consider:
<a href="https://searchfox.org/mozilla-central/source/dom/webidl/Event.webidl">Event.webidl</a>
</td>
<td>
{{ Non-standard_inline() }} The original target of the event, before any retargetings.
{{Non-standard_Inline}} The original target of the event, before any retargetings.
</td>
</tr>
<tr>
Expand All @@ -79,7 +79,7 @@ There are five targets to consider:
<a href="https://searchfox.org/mozilla-central/source/dom/webidl/Event.webidl">Event.webidl</a>
</td>
<td>
{{ Non-standard_inline() }} The original non-native target of the event before composition from Shadow DOM.
{{Non-standard_Inline}} The original non-native target of the event before composition from Shadow DOM.
</td>
</tr>
</tbody>
Expand Down