Index: runtime/observatory/lib/src/app/location_manager.dart |
diff --git a/runtime/observatory/lib/src/app/location_manager.dart b/runtime/observatory/lib/src/app/location_manager.dart |
index 13f9091c228dfaed5eb205f20ffd3761d68f3d8b..ec795e758f051fb0d771fdba1e5d2c0e81d966ba 100644 |
--- a/runtime/observatory/lib/src/app/location_manager.dart |
+++ b/runtime/observatory/lib/src/app/location_manager.dart |
@@ -125,7 +125,9 @@ class LocationManager extends Observable { |
return; |
} |
event.preventDefault(); |
- var target = event.target; |
+ // 'currentTarget' is the dom element that would process the event. |
+ // If we use 'target' we might get an <em> element or somesuch. |
+ var target = event.currentTarget; |
go(target.attributes['href']); |
} |
} |