| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This example is from | 3 This example is from |
| 4 https://github.com/dglazkov/Web-Components-Polyfill/blob/master/samples/news | 4 https://github.com/dglazkov/Web-Components-Polyfill/blob/master/samples/news |
| 5 --> | 5 --> |
| 6 <html> | 6 <html> |
| 7 <head> | 7 <head> |
| 8 <title>Simple Web Components Example</title> | 8 <title>Simple Web Components Example</title> |
| 9 <link rel="components" href="example/component/news/news-component.html"> | 9 <link rel="components" href="example/component/news/news-component.html"> |
| 10 <script type="application/javascript" src="testing.js"></script> | 10 <script type="application/javascript" src="testing.js"></script> |
| 11 </head> | 11 </head> |
| 12 <body> | 12 <body> |
| 13 <h1>Simple Web Components Example</h1> | 13 <h1>Simple Web Components Example</h1> |
| 14 <ul is="news"> | 14 <ul is="news"> |
| 15 <li><a href="//example.com/stories/1">A story</a></li> | 15 <li><a href="//example.com/stories/1">A story</a></li> |
| 16 <li><a href="//example.com/stories/2">Another story</a></li> | 16 <li><a href="//example.com/stories/2">Another story</a></li> |
| 17 <li class="breaking"><a href="//example.com/stories/3">Also a story</a></li> | 17 <li class="breaking"><a href="//example.com/stories/3">Also a story</a></li> |
| 18 <li><a href="//example.com/stories/4">Yet another story</a></li> | 18 <li><a href="//example.com/stories/4">Yet another story</a></li> |
| 19 <li><a href="//example.com/stories/4">Awesome story</a></li> | 19 <li><a href="//example.com/stories/4">Awesome story</a></li> |
| 20 <li class="breaking"><a href="//example.com/stories/5">Horrible story</a></l
i> | 20 <li class="breaking"><a href="//example.com/stories/5">Horrible story</a></l
i> |
| 21 </ul> | 21 </ul> |
| 22 <script type="application/dart"> | 22 <script type="application/dart"> |
| 23 import 'dart:html'; | 23 import 'dart:html'; |
| 24 main() { | 24 main() { |
| 25 window.setTimeout(() => window.postMessage('done', '*'), 0); | 25 window.setImmediate(() => window.postMessage('done', '*')); |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |