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

Side by Side Diff: sky/tests/resources/dom-utils.sky

Issue 732203004: Clean up child checks in ContainerNode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back secondary hierarchy checks. Created 6 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 unified diff | Download patch
« no previous file with comments | « sky/tests/dom/replaceChild-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 function childNodeCount(parent) {
3 var count = 0;
4 for (var node = parent.firstChild; node; node = node.nextSibling)
5 ++count;
6 return count;
7 }
8
9 function childElementCount(parent) {
10 var count = 0;
11 for (var element = parent.firstElementChild; element; element = element.next ElementSibling)
12 ++count;
13 return count;
14 }
15
16 module.exports = {
17 childNodeCount: childNodeCount,
18 childElementCount: childElementCount,
19 };
20 </script>
OLDNEW
« no previous file with comments | « sky/tests/dom/replaceChild-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698