web-platform-tests/wpt

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

Open

#2314 aperta il 10 nov 2015

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)HTML (2898 fork)batch import
good first issuehtmltype:missing-coverage

Metriche repository

Star
 (4581 star)
Metriche merge PR
 (Merge medio 6g 7h) (626 PR mergiate in 30 g)

Descrizione

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).

Guida contributor