Skip to content

Commit

Permalink
Extended data-sly-attribute section
Browse files Browse the repository at this point in the history
* added paragraph about the style and the event attributes
  • Loading branch information
raducotescu committed Aug 1, 2017
1 parent 7680431 commit 2fc0f78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SPECIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,8 @@ The attribute name and content are automatically XSS-protected accordingly, unle
<input type="number" name="quantity" min="${qttMin @ context='number'}" max="${qttMax @ context='number'}"/>
```

Event handler attributes (`on*`) and the `style` attribute cannot be generated with `data-sly-attribute` due to the fact that none of the available display contexts can fully protect against XSS attacks given the range of values that these attributes can contain.

##### 2.2.3.1. Detailed Examples
For all examples below, consider that following object is available in the context:
```javascript
Expand Down

0 comments on commit 2fc0f78

Please sign in to comment.