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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title> Test href value of anchor element in template.</title>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <template>
6 <a href="SUCCESS"></a>
7 </template>
8 <script>
9 test(function() {
10 var a = document.querySelector('template').content.querySelector('a');
foolip 2017/04/25 09:23:44 Can you put this test in LayoutTests/external/wpt/
11 assert_not_equals(a.href, "");
12 assert_equals(a.getAttribute('href'), "SUCCESS");
13 });
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698