summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/inspector-wrappers/inspector-hasAttributes.html
blob: 1fdf51a21454732b5a549e08888d76ec85998ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<head>
<script src="inspector-wrappers-test-utils.js"></script>
</head>
<body>
<script>instructions({trigger: "Collapse and expand the &lt;body/&gt; tag"});</script>
<script>
  _hasAttributes = document.body.hasAttributes;
  attackfunc = function() { 
    try { doAttack(); } catch(ex) { }
    return _hasAttributes.call(this);
  }
  document.body.firstChild.hasAttributes = attackfunc;
  document.body.hasAttributes = attackfunc;
  document.body.parentNode.hasAttributes = attackfunc;
</script>
</body>
</html>