diff options
Diffstat (limited to 'WebCore/manual-tests/inspector-wrappers/inspector-hasAttributes.html')
-rw-r--r-- | WebCore/manual-tests/inspector-wrappers/inspector-hasAttributes.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/WebCore/manual-tests/inspector-wrappers/inspector-hasAttributes.html b/WebCore/manual-tests/inspector-wrappers/inspector-hasAttributes.html new file mode 100644 index 0000000..1fdf51a --- /dev/null +++ b/WebCore/manual-tests/inspector-wrappers/inspector-hasAttributes.html @@ -0,0 +1,18 @@ +<html> +<head> +<script src="inspector-wrappers-test-utils.js"></script> +</head> +<body> +<script>instructions({trigger: "Collapse and expand the <body/> 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> |