Style: long chains like this are easier to read if you break on periods and line up with the first, e.g.

```
document.querySelector(...)
              .dataset.selected = true;
```