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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/template.js

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
1 /* 1 /*
2 * Template code 2 * Template code
3 * 3 *
4 * A template is just a javascript structure. An element is represented as: 4 * A template is just a javascript structure. An element is represented as:
5 * 5 *
6 * [tag_name, {attr_name:attr_value}, child1, child2] 6 * [tag_name, {attr_name:attr_value}, child1, child2]
7 * 7 *
8 * the children can either be strings (which act like text nodes), other tem plates or 8 * the children can either be strings (which act like text nodes), other tem plates or
9 * functions (see below) 9 * functions (see below)
10 * 10 *
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 target = target[components[i]]; 206 target = target[components[i]];
207 } 207 }
208 target[components[components.length - 1]] = object; 208 target[components[components.length - 1]] = object;
209 } 209 }
210 210
211 function extend(array, items) 211 function extend(array, items)
212 { 212 {
213 Array.prototype.push.apply(array, items); 213 Array.prototype.push.apply(array, items);
214 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698