Skip to content

Commit

Permalink
Whitelist button and SVG elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Sep 30, 2015
1 parent f1a8a29 commit 07c9388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/amp-html-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ Most HTML tags can be used unchanged in AMP HTML. Certain tags, however, have eq
| applet | Banned. |
| embed | Banned. |
| form | Banned. |
| input elements | Banned. Includes input, button, textarea, select, option. |
| input elements | Banned. Includes input, textarea, select, option. Notably, button element is allowed. |
| button | Allowed. |
| <a name="cust"></a>style | [Required style tags for adjusting opacity](#opacity) One additional style tag is allowed in head tag for the purpose of custom styling. This style tag must have the attribute `amp-custom`. [🔗](#cust) |
| link | Allowed for certain values of rel: `canonical`. `stylesheet` is generally disallowed, but some values may be whitelisted for font providers. |
| meta | The `http-equiv` attribute is banned. Otherwise allowed. |
| <a name="ancr"></a>a | The `href` attribute value must not begin with `javascript:`. If set, the `target` attribute value must be `_blank`. Otherwise allowed. [🔗](#ancr) |
| svg | Includes svg and svg-family of elements. |

Validator implementations should use a whitelist based on the HTML5 specification with the above tags removed.
TODO(malteubl): Add addendum with whitelist.
Expand Down

0 comments on commit 07c9388

Please sign in to comment.