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

Compute everything needed for composedPath() during dispatch #535

Merged
merged 3 commits into from
Nov 21, 2017

Conversation

annevk
Copy link
Member

@annevk annevk commented Nov 9, 2017

Fixes #525.


Preview | Diff

@annevk
Copy link
Member Author

annevk commented Nov 9, 2017

@tabatkins I get

Error running preprocessor, returned code: 1.
\033[1;31mFATAL ERROR:\033[0m Line 588 isn't indented enough (needs 1 indent) to be valid Markdown:
"  </ol>"
\033[7;31m ✘ \033[0m Did not generate, due to fatal errors

but I didn't even touch that line in this commit (nor does it contain </ol>).

@annevk
Copy link
Member Author

annevk commented Nov 9, 2017

@hayatoito @smaug---- while the Preview link in OP is broken, the Diff link does somehow work and shows you the changes rendered in HTML. Hope that helps.

dom.bs Outdated

<li><p>Let <var>isActivationEvent</var> be true, if <var>event</var> is a {{MouseEvent}} object and
<var>event</var>'s {{Event/type}} attribute is "<code>click</code>", and false otherwise.

<li><p>Let <var>activationTarget</var> be <var>target</var>, if <var>isActivationEvent</var> is
true and <var>target</var> has <a for=EventTarget>activation behavior</a>, and null otherwise.

<li><p>Let <var>slotable</var> be null.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set slotable to target if target is assigned, as we are doing in 11.2, here too.

@tabatkins
Copy link
Contributor

Ugh, I have a fix for the line numbers pointing wrong on my laptop (it's caused by me badly handling comment-stripping). It's trying to point to one of the lines in the early-600s, because you're using a 1-space indent but haven't told Bikeshed that (it defaults to assuming a 4-space indent for markdown purposes - this includes html).

@tabatkins
Copy link
Contributor

And fix is finished and pushed - it now correctly points out the problem is on line 631. You need to use a consistent indentation level thruout your spec - either set Indent: 1 in your metadata (and then correct your anchor/link-defaults blocks to use a 1-space indent) or switch to using a 4-space indent for your HTML. (Or always use tabs - 1 tab = 1 indent no matter what, and tabs in pre are automatically converted to 2-space indents in the output file.)

@annevk
Copy link
Member Author

annevk commented Nov 20, 2017

@hayatoito @smaug---- are either of you planning on writing tests covering all the various cases discussed?

@hayatoito
Copy link
Member

Yeah, let me add WPT on this.

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 21, 2017
Add a test for the change of DOM Standard.
See whatwg/dom#535 for details.

Change-Id: I725fc9e08ca72b5e1e083a67276decf0cdd8bfc8
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 21, 2017
Add a test for the change of DOM Standard.
See whatwg/dom#535 for details.

Change-Id: I725fc9e08ca72b5e1e083a67276decf0cdd8bfc8
Reviewed-on: https://chromium-review.googlesource.com/781303
Reviewed-by: Takayoshi Kochi <kochi@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518178}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 21, 2017
Add a test for the change of DOM Standard.
See whatwg/dom#535 for details.

Change-Id: I725fc9e08ca72b5e1e083a67276decf0cdd8bfc8
Reviewed-on: https://chromium-review.googlesource.com/781303
Reviewed-by: Takayoshi Kochi <kochi@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518178}
@hayatoito
Copy link
Member

The test was added at: web-platform-tests/wpt#8385

@annevk annevk merged commit 56ca18c into master Nov 21, 2017
@annevk annevk deleted the annevk/composedpath branch November 21, 2017 09:52
@annevk
Copy link
Member Author

annevk commented Nov 21, 2017

Thank you!

MXEBot pushed a commit to mirror/chromium that referenced this pull request Nov 23, 2017
Add a test for the change of DOM Standard.
See whatwg/dom#535 for details.

Change-Id: I725fc9e08ca72b5e1e083a67276decf0cdd8bfc8
Reviewed-on: https://chromium-review.googlesource.com/781303
Reviewed-by: Takayoshi Kochi <kochi@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518178}
@annevk annevk mentioned this pull request Aug 28, 2018
annevk added a commit that referenced this pull request Sep 13, 2018
The existing algorithm exposed nodes in shadow trees that should remain hidden. (This wasn't noticed in #535.)

This changes "get the parent" to return a tuple and therefore requires downstream changes in at least Indexed DB.

Tests: ...

Fixes #684.
annevk added a commit that referenced this pull request Sep 18, 2018
The existing algorithm exposed nodes in shadow trees that should remain hidden. (This wasn't noticed in #535.)

This roughly matches the approach taken by jsdom to solve this issue and unlike #696 requires no downstream changes.

Tests: ...

Fixes #684.
annevk added a commit that referenced this pull request Nov 27, 2018
The existing algorithm exposed nodes in shadow trees that should remain hidden. (This wasn't noticed in #535.)

This roughly matches the approach taken by jsdom to solve this issue and unlike #696 requires no downstream changes.

Tests: shadow-dom/event-composed-path.html in wpt.

Fixes #684. Closes #696.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants