From 5cd556f43e381bf4d3a017d4f56cc2d340a973ad Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 2 May 2017 16:14:29 +0200 Subject: [PATCH] Centralize checks for , ,
, and 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: * https://github.com/w3c/web-platform-tests/pull/5758 * https://github.com/w3c/web-platform-tests/pull/5759 * https://github.com/w3c/web-platform-tests/pull/5761 Fixes #2615. --- source | 47 ++++++++++++++++++----------------------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/source b/source index 24c3dd8a65c..e542ba75642 100644 --- a/source +++ b/source @@ -13400,19 +13400,10 @@ interface HTMLLinkElement : HTMLElement {

User agents could also include other information, such as the type of the resource (as given by the type attribute).

+

The activation behavior of link elements that create hyperlinks is to run the following steps:

- -
    - -
  1. If the link element's node document is not fully - active, then abort these steps.

  2. - -
  3. Follow the hyperlink created by the - link element.

  4. - -
- + data-x="hyperlink">hyperlinks is to follow the + hyperlink created by the link element.

@@ -19182,12 +19173,7 @@ interface HTMLAnchorElement : HTMLElement {

The activation behavior of a elements that create hyperlinks is to run the following steps:

-
    - -
  1. If the a element's node document is not fully active, then abort these steps.

  2. - - - +
    1. If the user has not indicated a specific browsing context for following the @@ -22768,11 +22754,19 @@ interface HTMLHyperlinkElementUtils {

      Following hyperlinks

      +

      An element element cannot navigate if element's node + document is not fully active or element is not + connected. + +

      This is also used by form submission for + the form element.

      +

      When a user follows a hyperlink created by an element subject, optionally with a hyperlink suffix, the user agent must run the following steps:

        +
      1. If subject cannot navigate, then return.

      2. Let replace be false.

      3. @@ -22880,6 +22874,7 @@ interface HTMLHyperlinkElementUtils { run the following steps:

          +
        1. If subject cannot navigate, then return.

        2. Parse the URL given by subject's href attribute, relative to @@ -38254,11 +38249,7 @@ interface HTMLAreaElement : HTMLElement {

          The activation behavior of area elements is to run the following steps:

          -
            - -
          1. If the area element's node document is not fully active, - then abort these steps.

          2. - +
            1. If the user has not indicated a specific browsing context for following the @@ -55289,14 +55280,12 @@ fur following steps:

                +
              1. If form cannot navigate, then return.

              2. -
              3. Let form document be the form's - node document.

              4. +
              5. Let form document be form's node document.

              6. -
              7. If form document is not connected, has - no associated browsing context, or its active - sandboxing flag set has its sandboxed forms browsing context flag set, then - abort these steps without doing anything.

              8. +
              9. If form document's active sandboxing flag + set has its sandboxed forms browsing context flag set, then return.

              10. Let form browsing context be the browsing context of form document.