| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 ``<iron-form>` is an HTML `<form>` element that can validate and submit any cust
om | 3 ``<iron-form>` is an HTML `<form>` element that can validate and submit any cust
om |
| 4 elements that implement `Polymer.IronFormElementBehavior`, as well as any | 4 elements that implement `Polymer.IronFormElementBehavior`, as well as any |
| 5 native HTML elements. | 5 native HTML elements. |
| 6 | 6 |
| 7 It supports both `get` and `post` methods, and uses an `iron-ajax` element to | 7 It supports both `get` and `post` methods, and uses an `iron-ajax` element to |
| 8 submit the form data to the action URL. | 8 submit the form data to the action URL. |
| 9 | 9 |
| 10 Example: | 10 Example: |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Checkboxes and radio buttons should only use their value if they're che
cked. | 168 // Checkboxes and radio buttons should only use their value if they're che
cked. |
| 169 if (el.type !== 'checkbox' && el.type !== 'radio') { | 169 if (el.type !== 'checkbox' && el.type !== 'radio') { |
| 170 return true; | 170 return true; |
| 171 } else { | 171 } else { |
| 172 return el.checked; | 172 return el.checked; |
| 173 } | 173 } |
| 174 } | 174 } |
| 175 | 175 |
| 176 }); | 176 }); |
| 177 | 177 |
| OLD | NEW |