OLD | NEW |
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> | 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> |
| 4 |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 6 |
2 <!-- | 7 <!-- |
3 The <html-echo> injects given |content| into its innerHTML, bypassing HTML | 8 The <html-echo> injects given |content| into its innerHTML, bypassing HTML |
4 escaping, which is always made by Polymer when we insert the result of an | 9 escaping, which is always made by Polymer when we insert the result of an |
5 Polymer expression into element's body. | 10 Polymer expression into element's body. |
6 | 11 |
7 Example: | 12 Example: |
8 | 13 |
9 <html-echo content="<div>Hello</div>"></html-element> | 14 <html-echo content="<div>Hello</div>"></html-element> |
10 | 15 |
11 will be equivalent to: | 16 will be equivalent to: |
12 | 17 |
13 <span><div>Hello</div></span> | 18 <span><div>Hello</div></span> |
14 --> | 19 --> |
15 <polymer-element name="html-echo" attributes="content"></polymer-element> | 20 <dom-module name="html-echo"></dom-module> |
| 21 |
OLD | NEW |