servo/components/script
Ms2ger 52e336e5a8 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.
2015-07-07 13:14:59 +02:00
..
dom Only make a elements activatable when they have an href attribute. 2015-07-07 13:14:59 +02:00
parse Update to zero-copy* HTML parsing 2015-06-25 20:40:38 -07:00
build.rs Fix build scripts warnings. 2015-03-18 21:53:48 +01:00
Cargo.toml Remove gfx dependency from script crate. 2015-07-01 08:59:25 -07:00
clipboard_provider.rs Audit and reduce unstable usage in script 2015-06-10 01:20:06 +05:30
cors.rs Reduce max line length from 150 to 120 characters 2015-05-24 00:01:49 -04:00
devtools.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
document_loader.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
horribly_inefficient_timers.rs Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. 2015-05-05 10:07:34 -04:00
layout_interface.rs Use euclid from crates.io 2015-06-19 00:04:24 +02:00
lib.rs Check the result of JS_Init. 2015-07-02 22:17:41 +02:00
makefile.cargo Don't generate pyc files. 2015-06-17 18:43:08 -06:00
network_listener.rs Create easy common interface for off-thread network listeners, and remove the CORS-specific reimplementation of async networking. 2015-04-16 11:46:41 -04:00
page.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
script_task.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
textinput.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
timers.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
webdriver_handlers.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00