Fix incorrect tree construction by the AAA [chromium/src : main]

0 views
Skip to first unread message

Keiichiro Nagashima (Gerrit)

unread,
Sep 15, 2021, 11:27:16 AM9/15/21
to Mason Freed, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org

Attention is currently required from: Mason Freed.

Keiichiro Nagashima would like Mason Freed to review this change.

View Change

Fix incorrect tree construction by the AAA

Prior to this CL, the following code:
<code some-attribute><div><code><code><code><code></code></code></code></code>
parsed to this:
<code some-attribute></code>
<div><code some-attribute><code><code><code><code></code></code></code></code></code></div>

The adoption agency algorithm reparented the div tag though code tags
were properly nested. A step was added to the spec[1] in order to fix
this, but not implemented in Chromium. This CL implements it.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=24833

Bug: 1217523
Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
---
M AUTHORS
M third_party/blink/renderer/core/html/parser/html_tree_builder.cc
A third_party/blink/web_tests/external/wpt/html/syntax/parsing/adoption_agency_check_the_end_tag_name.html
3 files changed, 28 insertions(+), 0 deletions(-)


To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
Gerrit-Change-Number: 3162497
Gerrit-PatchSet: 1
Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-MessageType: newchange

Keiichiro Nagashima (Gerrit)

unread,
Sep 15, 2021, 11:27:26 AM9/15/21
to blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Mason Freed, chromium...@chromium.org

Attention is currently required from: Mason Freed.

View Change

1 comment:

To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
Gerrit-Change-Number: 3162497
Gerrit-PatchSet: 1
Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Wed, 15 Sep 2021 15:27:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Blink WPT Bot (Gerrit)

unread,
Sep 15, 2021, 11:37:46 AM9/15/21
to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Mason Freed, chromium...@chromium.org

Attention is currently required from: Mason Freed.

Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/30804.

When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.

WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process

View Change

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 1
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Comment-Date: Wed, 15 Sep 2021 15:37:28 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Mason Freed (Gerrit)

    unread,
    Sep 15, 2021, 12:21:03 PM9/15/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        Hi! Could you review this patch? […]

        Yep, that's me! I'd be happy to review. And I just kicked off the tests.

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 1
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Comment-Date: Wed, 15 Sep 2021 16:20:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-MessageType: comment

    Mason Freed (Gerrit)

    unread,
    Sep 15, 2021, 12:34:16 PM9/15/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    View Change

    6 comments:

      •   <code some-attribute><div><code><code><code><code></code></code></code></code>
        parsed to this:
        <code some-attribute></code>
        <div><code some-attribute><code><code><code><code></code></code></code></code></code></div>

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 1
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Comment-Date: Wed, 15 Sep 2021 16:34:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Mason Freed (Gerrit)

    unread,
    Sep 15, 2021, 12:35:18 PM9/15/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    View Change

    1 comment:

    • Commit Message:

      • Patch Set #1, Line 21: Bug

        tip: if you change this to "Fixed", the bug will get automatically closed when this CL lands. E.g.

          Fixed: 1217523

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 1
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Comment-Date: Wed, 15 Sep 2021 16:35:09 +0000

    Keiichiro Nagashima (Gerrit)

    unread,
    Sep 15, 2021, 3:40:42 PM9/15/21
    to blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    Keiichiro Nagashima uploaded patch set #3 to this change.

    View Change

    Fix incorrect tree construction by the AAA

    Prior to this CL, the following code:
      <code some-attribute>
    <div>
    <code>
    <code>
    <code>
    <code>
    </code>
    </code>
    </code>
    </code>
    parsed to this:
    <code some-attribute></code>
    <div>
    <code some-attribute>
    <code>
    <code>
    <code>
    <code>
    </code>
    </code>
    </code>
    </code>
    </code>
    </div>

    The adoption agency algorithm reparented the div tag though code tags
    were properly nested. A step was added to the spec[1] in order to fix
    this, but not implemented in Chromium. This CL implements it.

    [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=24833

    Fixed: 1217523

    Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    ---
    M AUTHORS
    M third_party/blink/renderer/core/html/parser/html_tree_builder.cc
    A third_party/blink/web_tests/external/wpt/html/syntax/parsing/adoption_agency_check_the_end_tag_name.html
    3 files changed, 32 insertions(+), 1 deletion(-)

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 3
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-MessageType: newpatchset

    Keiichiro Nagashima (Gerrit)

    unread,
    Sep 15, 2021, 3:56:53 PM9/15/21
    to blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Mason Freed, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Mason Freed.

    View Change

    5 comments:

      •   <code some-attribute><div><code><code><code><code></code></code></code></code>
        parsed to this:
        <code some-attribute></code>
        <div><code some-attribute><code><code><code><code></code></code></code></code></code></div>

      • It would be nice to format this a bit - you can use more lines and indent things if you like.

        Done

      • tip: if you change this to "Fixed", the bug will get automatically closed when this CL lands. E.g. […]

        Done

    • File third_party/blink/renderer/core/html/parser/html_tree_builder.cc:

      • I know this is an old comment, but while you're here, can you please correct this link to: […]

        Done

      • Let's add a comment here referring to the new spec: […]

        Done

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 3
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Comment-Date: Wed, 15 Sep 2021 19:56:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    Gerrit-MessageType: comment

    Mason Freed (Gerrit)

    unread,
    Sep 15, 2021, 7:05:46 PM9/15/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #3:

        Thanks for the changes! Let's wait to see if Patchset 3 passes. If not, see my other comment here.

    • File third_party/blink/renderer/core/html/parser/html_tree_builder.cc:

      • Patch Set #3, Line 1574: ) &&

        If you're still getting failures on Patchset 3 (and I'm not sure you are), then you might need to add this here:

          && tree_.TopStackItem()->IsElementNode() &&

        (or something similar)

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 3
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Comment-Date: Wed, 15 Sep 2021 23:05:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Keiichiro Nagashima (Gerrit)

    unread,
    Sep 16, 2021, 11:12:49 AM9/16/21
    to blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Mason Freed, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Mason Freed.

    View Change

    3 comments:

    • Patchset:

      • Patch Set #4:

        Thank you for the comment!
        I think this patchset is going to pass.

    • File third_party/blink/renderer/core/html/parser/html_tree_builder.cc:

    • File third_party/blink/renderer/core/html/parser/html_tree_builder.cc:

      • If you're still getting failures on Patchset 3 (and I'm not sure you are), then you might need to ad […]

        Thank you for the suggestion!
        The test passed after I added IsElementNode(), yeah!
        I'm going to upload a patchset.

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 4
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Comment-Date: Thu, 16 Sep 2021 15:12:26 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Keiichiro Nagashima <n4ag3...@gmail.com>

    Mason Freed (Gerrit)

    unread,
    Sep 16, 2021, 11:33:43 AM9/16/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    Patch set 4:Commit-Queue +2

    View Change

    1 comment:

    • Patchset:

      • Patch Set #4:

        Ok, this looks good! Thanks for the changes, and for working on this bug. I'll push the button to land it now.

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 4
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Comment-Date: Thu, 16 Sep 2021 15:33:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Mason Freed (Gerrit)

    unread,
    Sep 16, 2021, 11:34:18 AM9/16/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #4:

        Ok, this looks good! Thanks for the changes, and for working on this bug. […]

        ...also, congratulations on your first patch! 🎉

    To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
    Gerrit-Change-Number: 3162497
    Gerrit-PatchSet: 4
    Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
    Gerrit-Comment-Date: Thu, 16 Sep 2021 15:34:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Mason Freed (Gerrit)

    unread,
    Sep 16, 2021, 11:34:31 AM9/16/21
    to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

    Attention is currently required from: Keiichiro Nagashima.

    Patch set 4:Code-Review +1

    View Change

      To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
      Gerrit-Change-Number: 3162497
      Gerrit-PatchSet: 4
      Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
      Gerrit-Comment-Date: Thu, 16 Sep 2021 15:34:23 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      Keiichiro Nagashima (Gerrit)

      unread,
      Sep 16, 2021, 11:49:29 AM9/16/21
      to blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Mason Freed, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

      View Change

      1 comment:

      • Patchset:

        • Patch Set #4:

          ... […]

          Thank you for your kind support.
          I learned a lot and enjoyed it!

      To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
      Gerrit-Change-Number: 3162497
      Gerrit-PatchSet: 4
      Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-Comment-Date: Thu, 16 Sep 2021 15:49:02 +0000

      Mason Freed (Gerrit)

      unread,
      Sep 16, 2021, 12:22:38 PM9/16/21
      to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Chromium LUCI CQ, Blink WPT Bot, chromium...@chromium.org

      Attention is currently required from: Keiichiro Nagashima.

      View Change

      1 comment:

      • Patchset:

        • Patch Set #4:

          Thank you for your kind support. […]

          I'm glad! Come back for more! 😊

      To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
      Gerrit-Change-Number: 3162497
      Gerrit-PatchSet: 4
      Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-Attention: Keiichiro Nagashima <n4ag3...@gmail.com>
      Gerrit-Comment-Date: Thu, 16 Sep 2021 16:22:26 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Keiichiro Nagashima <n4ag3...@gmail.com>

      Chromium LUCI CQ (Gerrit)

      unread,
      Sep 16, 2021, 1:17:36 PM9/16/21
      to Keiichiro Nagashima, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Mason Freed, Blink WPT Bot, chromium...@chromium.org

      Chromium LUCI CQ submitted this change.

      View Change


      Approvals: Mason Freed: Looks good to me; Commit
      Fix incorrect tree construction by the AAA

      Prior to this CL, the following code:
        <code some-attribute>
      <div>
      <code>
      <code>
      <code>
      <code>
      </code>
      </code>
      </code>
      </code>
      parsed to this:
      <code some-attribute></code>
      <div>
      <code some-attribute>
      <code>
      <code>
      <code>
      <code>
      </code>
      </code>
      </code>
      </code>
      </code>
      </div>

      The adoption agency algorithm reparented the div tag though code tags
      were properly nested. A step was added to the spec[1] in order to fix
      this, but not implemented in Chromium. This CL implements it.

      [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=24833

      Fixed: 1217523
      Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3162497
      Commit-Queue: Mason Freed <mas...@chromium.org>
      Reviewed-by: Mason Freed <mas...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#922189}

      ---
      M AUTHORS
      M third_party/blink/renderer/core/html/parser/html_tree_builder.cc
      A third_party/blink/web_tests/external/wpt/html/syntax/parsing/adoption_agency_check_the_end_tag_name.html
      3 files changed, 32 insertions(+), 1 deletion(-)


      To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
      Gerrit-Change-Number: 3162497
      Gerrit-PatchSet: 5
      Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-MessageType: merged

      Blink WPT Bot (Gerrit)

      unread,
      Sep 16, 2021, 1:43:22 PM9/16/21
      to Keiichiro Nagashima, Chromium LUCI CQ, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, loading-rev...@chromium.org, Mason Freed, chromium...@chromium.org

      The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/30804

      View Change

        To view, visit change 3162497. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I2ce1ada69d37305041468b9c10f59e6238e9a209
        Gerrit-Change-Number: 3162497
        Gerrit-PatchSet: 5
        Gerrit-Owner: Keiichiro Nagashima <n4ag3...@gmail.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
        Gerrit-Comment-Date: Thu, 16 Sep 2021 17:43:13 +0000
        Reply all
        Reply to author
        Forward
        0 new messages