web-platform-tests/wpt

selectionchange testing TODOs

Open

#11.493 geöffnet am 13. Juni 2018

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

Repository-Metriken

Stars
 (4.581 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 23h) (682 gemergte PRs in 30 T)

Beschreibung

Over in PR #11491 I introduced a preliminary test for the selectionchange event.

Here is an initial pass at a TODO for more tests we should write for selectionchange:

  • test for invoking selectionchange without changing the selection
  • test that selection change does not fire in a document without a browsing context (i.e. document.implementation.createHTMLDocument)
  • test which document selectionchange fires when it is bound to in an iframe

While writing this initial coverage I encountered the following behavior which warrants further exploration in future tests/bugs/implementation patches. This area has a lot of compat issues to track down, so I think there may be a bunch of 'good first issues here':

  • When selectAllChildren runs, Firefox synchronously fires selectionchange, while Chrome appears to que a task.
  • selectAllChildren works on textareas in chrome and not firefox, while accessing textContent works in firefox but not chrome.
  • textarea innerText and textContent behave differently in Chrome and FF

Contributor Guide