summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1222226-1.html
blob: 62af2579534192e5d2b3db28e184da5fc8294483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<style>
.red { color: red; }
</style>
<script>
document.onreadystatechange = function() {
  if (document.readyState == "complete") {
    var arr = ["s2","s3"];
    arr.forEach(function(n) {
      document.getElementById(n).className = "red";
    });
  }
};
</script>
<div>
  <span id="s1">test</span><br />
  <span id="s2">test</span><br />
  <span id="s3">test</span><br />
  <span id="s4">test</span><br />
</div>