Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(951)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js

Issue 2527763003: [DevTools] Turn links into spans to prevent default behavior. (Closed)
Patch Set: fixed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
index 49fd944bd9ee92fbba5d2fcd7a2945e15898670d..e293c62468665e71eaf20471f0ddbf609151ee5b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
@@ -398,7 +398,7 @@ function printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
function extractLinkText(element)
{
- var anchor = element.nodeName === "A" ? element : element.querySelector("a");
+ var anchor = element.querySelector(".devtools-link");
if (!anchor)
return element.textContent;
var anchorText = anchor.textContent;

Powered by Google App Engine
This is Rietveld 408576698