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

Side by Side Diff: recipes/web/html/inserting_elements_outside.html

Issue 14109034: Recipes for using CSS Selectors with dart:html (Closed) Base URL: https://github.com/dart-lang/cookbook.git@master
Patch Set: Removed unwanted file. Created 7 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
3 <html>
4 <body>
5 <ul>
6 <li>Has been naughtly</li>
7 <li>Has been nice</li>
8 </ul>
9
10 <script type="application/dart">
11
12 import 'dart:html';
13
14 void main() {
15 var ul = query('ul');
16
17 ul.insertAdjacentHtml('beforeBegin', '<p>Making a list.</p>');
18 ul.insertAdjacentHtml('afterEnd', '<p>Checking it twice.</p>');
19 }
20 </script>
21
22 <script src="packages/browser/dart.js"></script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698