| Summary: | :hover state sticks after a drag-and-drop | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | NashvilEric |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | a_protyasha, ap, asefkow, benjamin, david, enrica, koivisto, matiasnu, rniwa, thibault.clerc2, webkit, zarv1k |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Mac | ||
| OS: | OS X 10.11 | ||
| URL: | http://jsfiddle.net/zFk2V/3/ | ||
|
Description
NashvilEric
2014-07-02 13:28:20 PDT
This still reproduces on Safari Tech Preview 8. Mass move bugs into the DOM component. Another bug which belongs to UI Events. Still reproduces in Safari 14 and Chrome 88 This still reproduces in Chrome Version 99.0.4844.83 I'm still seeing this in Safari Version 17.3.1
If i run `document.querySelectorAll(":hover")` i can get an ElementList with a whole pile of things that are very much not under the mouse.
Is there a workaround in the meantime to manually flush the contents of the `:hover` pseudo-selector after an onDrop event?
Anybody else who lands here looking for a work around, i've found this works:
```
for (const child of document.body.children) { document.body.replaceChild(child, child) }
```
hope that saves somebody a bit of headache!
|