Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 63519535440f8da30cfffdabab46c68dda9f45a9
      
https://github.com/WebKit/WebKit/commit/63519535440f8da30cfffdabab46c68dda9f45a9
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-08-24 (Mon, 24 Aug 2026)

  Changed paths:
    M LayoutTests/fast/dom/HTMLDocument/document-special-properties-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/WEB_FEATURES.yml
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/w3c-import.log
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-01-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-01.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-02-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-02.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-04-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-04.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-05-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-05.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-06.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-07-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-07.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-empty-name-dynamic-crash.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-added-cached-list-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-added-cached-list.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-added-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-added.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-dynamic-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-dynamic.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-removed-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-removed.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-names-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-names.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-no-shadowing.tentative-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-no-shadowing.tentative.html
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-tree-order-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-tree-order.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/w3c-import.log
    M Source/WebCore/html/HTMLDocument.cpp
    M Source/WebCore/html/HTMLEmbedElement.cpp
    M Source/WebCore/html/HTMLEmbedElement.h
    M Source/WebCore/html/HTMLNameCollection.cpp
    M Source/WebCore/html/HTMLObjectElement.cpp
    M Source/WebCore/html/HTMLObjectElement.h

  Log Message:
  -----------
  Document named properties should not filter object and embed elements by 
exposedness
https://bugs.webkit.org/show_bug.cgi?id=322330

Reviewed by Chris Dumez.

The HTML specification's "exposed" concept, which no engine implemented
consistently, is being removed: https://github.com/whatwg/html/issues/12787

WebKit applied isExposed() when resolving a name but not when enumerating
supported property names, so Object.getOwnPropertyNames(document) could
report a name that resolved to undefined. Stop consulting it, matching
Gecko. Two behavior changes: an object or embed element nested in an
object element with the same name or id now matches alongside its
ancestor, so lookup returns an HTMLCollection rather than the innermost
element; and an object element with object or embed descendants is now
reachable by its name and id.

Tests imported from https://github.com/web-platform-tests/wpt/pull/62149

Tests: 
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-empty-name-dynamic-crash.html
       
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-added-cached-list.html
       
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-added.html
       
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-dynamic.html
       
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-img-name-removed.html
       
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-no-shadowing.tentative.html
       
imported/w3c/web-platform-tests/html/dom/documents/dom-tree-accessors/nameditem-tree-order.html

Canonical link: https://commits.webkit.org/319699@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to