web-platform-tests/wpt

Expand event-handler-attributes-body-window.html

Open

#2.314 geöffnet am 10. Nov. 2015

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (2.898 Forks)batch import
good first issuehtmltype:missing-coverage

Repository-Metriken

Stars
 (4.581 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 7h) (626 gemergte PRs in 30 T)

Beschreibung

The test at html/webappapis/scripting/events/event-handler-attributes-body-window.html could be expanded. For example, currently it tests

    document.body['on' + handler] = f;
    assert_equals(window['on' + handler], f);

while it could also test the opposite direction:

    window['on' + handler] = f;
    assert_equals(document.body['on' + handler], f);

Also, it would be useful to test with:

  • a frameset as the body
  • a frameset or body element that's not in a document
  • a frameset or body element that's not the body element (for example, with multiple body elements in the DOM).

Contributor Guide