| Summary: | MediaList.toString() returns [object MediaList] | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexander <shutovby> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Minor | CC: | eric.carlson, smoley |
| Priority: | P2 | Keywords: | DoNotImportToRadar |
| Version: | Safari 14 | ||
| Hardware: | Mac | ||
| OS: | macOS 10.15 | ||
Thanks for filing, I can reproduce this on Safari 14.0.1 beta, but this appears to fixed in STP115 (Safari 14.1). Are you still able to reproduce it there? (In reply to Smoley from comment #1) > Thanks for filing, I can reproduce this on Safari 14.0.1 beta, but this > appears to fixed in STP115 (Safari 14.1). Are you still able to reproduce it > there? Hi Smoley, I can confirm it is already fixed in Safari Technical Preview. Great, thanks! |
MediaList.toString() should be equal to MediaList.mediaText. Example: var style = document.createElement('style'); style.textContent = '@media screen, print {}'; document.body.append(style); style.sheet.cssRules[0].media.toString(); Returns "[object MediaList]" in Safari and "screen, print" in Chrome and Firefox.