Bug 249637
| Summary: | browserbench.org: illegal invocation of HTMLImageElement.prototype.srcset | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | tophf <tophf> |
| Component: | WebKit Website | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, jond, rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | All | ||
tophf
1. open browserbench.org
2. check the console
Expected: no errors
Observed: "Uncaught TypeError: Illegal invocation"
The cause is this problematic code in index.html added five years ago in bug 172049:
if (!HTMLImageElement.prototype.srcset) {
Suggesting a possible fix:
if (!('srcset' in HTMLImageElement.prototype)) {
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/103721986>