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

Disconnected <a> should not navigate #5759

Merged
merged 5 commits into from Sep 22, 2017

Conversation

annevk
Copy link
Member

@annevk annevk commented May 2, 2017

Follow-up test for whatwg/html#2613.

@wpt-pr-bot wpt-pr-bot added the html label May 2, 2017
annevk added a commit to whatwg/html that referenced this pull request May 3, 2017
Require that they are all connected to a document that is fully
active. There is enough difference between implementations that this
appears to be web compatible.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615.
@annevk
Copy link
Member Author

annevk commented May 3, 2017

As described in whatwg/html#2613 I'm flipping the pass condition.

@annevk
Copy link
Member Author

annevk commented May 3, 2017

We should remove the second async_test now the pass condition is flipped I think. Will leave it there for now until I get some review.

@annevk annevk changed the title Disconnected <a> should still navigate Disconnected <a> should not navigate May 3, 2017
annevk added a commit to whatwg/html that referenced this pull request May 9, 2017
Require that they are all connected to a document that is fully
active. There is enough difference between implementations that this
appears to be web compatible.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615.
annevk added a commit to whatwg/html that referenced this pull request Aug 23, 2017
Require that they are all connected to a document that is fully
active. There is enough difference between implementations that this
appears to be web compatible.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615.
@web-platform-tests web-platform-tests deleted a comment from w3c-bots Aug 23, 2017
@web-platform-tests web-platform-tests deleted a comment from w3c-bots Aug 23, 2017
@web-platform-tests web-platform-tests deleted a comment from w3c-bots Aug 23, 2017
@web-platform-tests web-platform-tests deleted a comment from wpt-pr-bot Aug 23, 2017
@annevk
Copy link
Member Author

annevk commented Aug 23, 2017

Time to flip the pass condition back again, but only for <a>.

@annevk annevk force-pushed the annevk/disconnected-a-and-navigating branch from 2316482 to d1ee685 Compare August 23, 2017 14:08
@w3c-bots
Copy link

w3c-bots commented Aug 23, 2017

Build PASSED

Started: 2017-09-15 13:15:54
Finished: 2017-09-15 13:20:42

View more information about this build on:

link.target = "certifiedrandom" + type;
link.href = "/";
document.body.appendChild(target);
target.onload = t.step_func(() => {
Copy link
Member

Choose a reason for hiding this comment

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

This test will pass after 500 ms if followed is true and the target never loads. That seems wrong?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good, seems that found a bug in Fx.

@@ -0,0 +1,43 @@
["a",
"area"].forEach(type => {
Copy link
Member

Choose a reason for hiding this comment

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

Missing "link"

Also isn't this file partially redudant with active-document.window.js, introduced in #5758 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The link element doesn't have target.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think it's redundant. That's a link in a document that's navigated away. Here it's a link that's simply not connected (or from a synthetic document).

@annevk annevk merged commit 055df51 into master Sep 22, 2017
@annevk annevk deleted the annevk/disconnected-a-and-navigating branch September 22, 2017 11:59
annevk added a commit to whatwg/html that referenced this pull request Sep 22, 2017
Require that they are all connected to a document (except for <a>) that is fully active (including <a>). There is enough difference between implementations that this appears to be web compatible.

Also perform a second connected check for <form>.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes #2615 and fixes #2708.
alice pushed a commit to alice/html that referenced this pull request Jan 8, 2019
Require that they are all connected to a document (except for <a>) that is fully active (including <a>). There is enough difference between implementations that this appears to be web compatible.

Also perform a second connected check for <form>.

Tests:

* web-platform-tests/wpt#5758
* web-platform-tests/wpt#5759
* web-platform-tests/wpt#5761

Fixes whatwg#2615 and fixes whatwg#2708.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants