Changes between Initial Version and Version 1 of Ticket #10276, comment 6
- Timestamp:
- Jun 7, 2013, 10:10:31 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10276, comment 6
initial v1 6 6 However, I disagree that it's entirely analogous. If you go this route, then the string/object format will no longer be logical IMHO. 7 7 8 Here's the key thing: '''if an element is disallowed, then it is by definition impossible to set attributes, styles or classes on it.''' \8 Here's the key thing: '''if an element is disallowed, then it is by definition impossible to set attributes, styles or classes on it.''' 9 9 That's why in my opinion it doesn't make any sense to list disallowed attributes etc. within `disallowedContent`: it should ''only'' contain disallowed HTML elements! 10 10 Given a list of allowed elements (i.e. `allowedContent`), only then it makes sense to define restrictions on which attributes, styles and classes ''may'' be set (`attributes`), ''must'' be set (`requiredAttributes`) and … ''may not'' be set (`forbiddenAttributes`, as I proposed in comment:3).