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

Side by Side Diff: LayoutTests/fast/dom/DocumentFragment/sibling-rules-under-document-fragment.html

Issue 270503006: Make pseudo-classes selector queries work on DocumentFragment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
esprehn 2014/05/08 05:25:11 We usually leave off the <html>, <head> and <body>
Inactive 2014/05/08 13:17:36 Done.
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Tests :first-child rule under DocumentFragment.');
9
10 var f = document.createDocumentFragment();
11 var e = document.createElement('div');
esprehn 2014/05/08 05:25:11 can we call this variable div and the other one fr
Inactive 2014/05/08 13:17:36 Done.
12 var a = document.createElement('a');
13 var b = document.createElement('a');
14
15 f.appendChild(a);
16 e.appendChild(b);
17
18 var fragmentSelected = f.querySelector('a:first-child');
19 var elementSelected = e.querySelector('a:first-child');
20
21 shouldBe("fragmentSelected", "a");
22 shouldBe("elementSelected", "b");
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698