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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html

Issue 2837823004: Set active document url to <template> content URL. (Closed)
Patch Set: Created 3 years, 8 months 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/fast/dom/HTMLAnchorElement/anchor-in-template.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html
new file mode 100644
index 0000000000000000000000000000000000000000..565e46a8332b3be03ed2eff20f5288aa102722ca
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/anchor-in-template.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<title> Test href value of anchor element in template.</title>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<template>
+ <a href="SUCCESS"></a>
+</template>
+<script>
+test(function() {
+ var a = document.querySelector('template').content.querySelector('a');
foolip 2017/04/25 09:23:44 Can you put this test in LayoutTests/external/wpt/
+ assert_not_equals(a.href, "");
+ assert_equals(a.getAttribute('href'), "SUCCESS");
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698