Skip to content

[css-fonts-3] Typo in onload eventHandler #3553

Closed
@pyoor

Description

@pyoor

The following pages include an encoded '<' character in the onload eventHandler.

window.onload = function () {
  if (!("devicePixelRatio" in window && window.devicePixelRatio > 1)) return;
  var i, hiresElements = document.getElementsByClassName("hires");
  for (i = 0; i &lt; hiresElements.length; i++) {
    var h = hiresElements[i];
    if (h.tagName != "IMG") continue;
    var src = h.getAttribute("src");
    var src2x = src.replace(/\.\w+$/, function(m) { return "@2x" + m; });
    h.src = src2x;
  }
}

for (i = 0; i &lt; hiresElements.length; i++) {

for (i = 0; i &lt; hiresElements.length; i++) {

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions