diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-07-03 17:34:08 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-07-07 13:14:59 +0200 |
commit | 52e336e5a8c9574dcb91aed8e8c2696300520d04 (patch) | |
tree | 60733ceb2cb8df4611a70f9a2d51c1fdc2dd5995 /components/script/dom/bindings/codegen/pythonpath.py | |
parent | 73b52c095a448116c0f9db23894a0932d0d53484 (diff) | |
download | servo-52e336e5a8c9574dcb91aed8e8c2696300520d04.tar.gz servo-52e336e5a8c9574dcb91aed8e8c2696300520d04.zip |
Only make a elements activatable when they have an href attribute.
I've tested this manually, by clicking on the "baz" in code like
```js
var a = document.body.appendChild(document.createElement("a"));
a.textContent = "bar ";
a.setAttribute("href", "http://www.yahoo.com");
var b = a.appendChild(document.createElement("a"));
b.textContent = "baz";
```
Before this change, the click is trapped by `b` and ignored there; after this
change, the click passes through `b` to `a`, where it is handled.
Unfortunately, I haven't found a way to write an automated test.
Diffstat (limited to 'components/script/dom/bindings/codegen/pythonpath.py')
0 files changed, 0 insertions, 0 deletions