html/browsers/the-window-object/named-access-on-the-window-object/

94 / 97 WPT subtests passing

Failed
3
Timed out
0
Not run
0
Test files
19
Blocking files
0

Chrome 83 / 97 WPT subtests passing on the same files, 1 blocking

Tests

19 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
basics.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. A named property must return an element as-is if its name attribute matches
  2. A named property must not be set if the element is not reachable from the Document
  3. A named property must not be enumerable
  4. A named property must return any element for which the id attribute matches
  5. A non element node in the document should not cause errors
  6. An element with identical name and id attributes should occur in the HTMLCollection once, not twice
changing.html5 / 5 passingChrome 5 / 50 failedClean
Standing
Clean runner status OK
Chrome
Clean 5 / 5 WPT subtests passing runner status OK
5 passing subtests
  1. Changing an attribute must update the named properties (id)
  2. Changing an attribute must update the named properties (name)
  3. Changing an attribute must not remove the named properties if a different attribute still matches (id)
  4. Changing an attribute must not remove the named properties if a different attribute still matches (name)
  5. Changing an attribute that is not id or name must not cause errors
cross-global-npo.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Named access across globals
cross-origin-named-access.sub.html0 / 3 passingChrome 1 / 33 failedExempt
Standing
Exempt runner status OK
Chrome
With failures 1 / 3 WPT subtests passing runner status OK

Exempt from the 0.1 gate: Crane follows the browser majority

a cross-origin child is exposed by the name its container gives it, so all three subtests fail exactly as in Firefox; Chrome passes the changed-name case and Safari fails it at an earlier assertion

Crane matches
Firefox
Chrome
wpt.fyi run 4786307730243584: 1/3 (Chrome 157, 2358bd4835)
Firefox
wpt.fyi run 4877168468033536: 0/3 (Firefox 160, 2358bd4835)
Safari
wpt.fyi run 6479119966273536: 0/3 (Safari 27.2, 2358bd4835)
Ruling
the integrator's golden-rule-2 ruling (a), 2026-11-18, lane blk3 (merge a819ad6550d): cross-origin child navigables named by their container stay exposed by name, the Chrome and Firefox mechanism (HTML before the 2022 navigables rewrite; whatwg/html#12663 asks to restore it)
Revisit
when Chrome, Firefox or Safari changes its result on a newer aligned wpt.fyi run, or Crane's result moves
  1. FAILAccessing a cross-origin child global by name returns undefined
    assert_equals: window.frame1 should be undefined for cross-origin iframes expected (undefined) undefined but got (object) [stringifying object threw SecurityError: Failed to read a named property from 'Window': Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame. with type object]
  2. FAILChild accessing its own global through a cross-origin parent's WindowProxy throws an exception
    assert_equals: Accessing `window.parent.frame1` from the child throws a SecurityError expected "SecurityError" but got "No exception"
  3. FAILChild accessing its own global (through a changed name) on the cross-origin parent's WindowProxy throws an exception
    assert_equals: Accessing window.parent.new_name should throw SecurityError expected "SecurityError" but got "No exception"
doc-no-window.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. A document without a Window must not cause errors
existing-prop.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. A named property must not be set if a property already exists
  2. A named property must not be set if a property already exists, even if undefined
  3. If a property is occupied by a named property but then the user sets it, the user's value shadows it
  4. A named property must not be set if the property already exists in the proxy
id-non-html-elements.html30 / 30 passingChrome 30 / 300 failedClean
Standing
Clean runner status OK
Chrome
Clean 30 / 30 WPT subtests passing runner status OK
30 passing subtests
  1. Parsed svg and math elements with an id are exposed
  2. An element in the null namespace with an id is exposed
  3. An element in the SVG namespace with an id is exposed
  4. An element in the MathML namespace with an id is exposed
  5. An element in a namespace other than HTML, SVG, and MathML with an id is exposed
  6. An element in the SVG namespace whose local name is img is exposed by its id
  7. Non-HTML elements are included in the HTMLCollection returned for multiple matches
  8. Named access for a non-HTML element is updated as it is inserted, changed, and removed
  9. An element in the null namespace whose local name is embed is not exposed by its name attribute
  10. An element in the null namespace whose local name is form is not exposed by its name attribute
  11. An element in the null namespace whose local name is img is not exposed by its name attribute
  12. An element in the null namespace whose local name is object is not exposed by its name attribute
  13. An element in the SVG namespace whose local name is embed is not exposed by its name attribute
  14. An element in the SVG namespace whose local name is form is not exposed by its name attribute
  15. An element in the SVG namespace whose local name is img is not exposed by its name attribute
  16. An element in the SVG namespace whose local name is object is not exposed by its name attribute
  17. An element in the MathML namespace whose local name is embed is not exposed by its name attribute
  18. An element in the MathML namespace whose local name is form is not exposed by its name attribute
  19. An element in the MathML namespace whose local name is img is not exposed by its name attribute
  20. An element in the MathML namespace whose local name is object is not exposed by its name attribute
  21. An element in a namespace other than HTML, SVG, and MathML whose local name is embed is not exposed by its name attribute
  22. An element in a namespace other than HTML, SVG, and MathML whose local name is form is not exposed by its name attribute
  23. An element in a namespace other than HTML, SVG, and MathML whose local name is img is not exposed by its name attribute
  24. An element in a namespace other than HTML, SVG, and MathML whose local name is object is not exposed by its name attribute
  25. An element in the SVG namespace whose local name is img is not kept exposed by its name attribute
  26. An id attribute in a namespace other than null is not exposed
  27. A prefixed id attribute is not exposed
  28. An xml:id attribute is not exposed
  29. A name attribute in a namespace other than null on an img element is not exposed
  30. A prefixed name attribute on an img element is not exposed
live-collection.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. A retained named-access collection becomes empty when all matches are removed
  2. A retained named-access collection follows removal of the document element
multi-match.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. A named property must return a HTMLCollection if there are multiple matches
name-attribute-elements.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Only elements with specific local names may be returned if their name attribute matches
  2. Only elements with specific local names may be returned if their name attribute matches (negative test)
  3. Removing an element for which the name attribute is not tracked, must not cause errors upon removing it
named-objects.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. Check if the first nested browsing context is returned by window['c']
  2. Check if window['a'] contains all embed, form, img, and object elements, and their order
  3. Check that window['fs'] does not return the frameset element with name='fs' (historical)
  4. Check if window['b'] returns the elements with the id='b'
  5. Check if window['d'] returns the element with id='d'
  6. Check widow[''] when there are some elements with empty id or name attribute
nested-context.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. A named property that matches any element that contains a nested browsing context, must return the WindowProxy of that context
  2. A named property that matches an element that contains a nested browsing context must return the element if using id
prototype.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Property on window.
  2. Property on Window.prototype.
  3. Property on EventTarget.prototype.
  4. Property on Object.prototype.
removing.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Removing an element must update the named properties
  2. Removing a non-element node must not cause errors
scoped-to-associated-document.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. Elements of the window's associated document are exposed
  2. Elements of a document created by createHTMLDocument() are not exposed
  3. Elements of a document created by DOMParser are not exposed
  4. Ids set after insertion into another document are not exposed
  5. Elements adopted into the associated document become exposed
  6. Elements adopted out of the associated document stop being exposed
strict-mode-redefine-readonly-property.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Adding/removing form with a name referring to a non-configurable property
window-named-properties.html7 / 7 passingChrome 7 / 70 failedClean
Standing
Clean runner status OK
Chrome
Clean 7 / 7 WPT subtests passing runner status OK
7 passing subtests
  1. Static name
  2. Static id
  3. Static name on the prototype
  4. constructor
  5. duplicate property names
  6. Dynamic name
  7. Ghost name
window-null-names.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Named access with null characters

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.