Changes between Initial Version and Version 1 of Ticket #10276, comment 6


Ignore:
Timestamp:
Jun 7, 2013, 10:10:31 AM (7 years ago)
Author:
Wim Leers
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10276, comment 6

    initial v1  
    66However, I disagree that it's entirely analogous. If you go this route, then the string/object format will no longer be logical IMHO.
    77
    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.'''\
     8Here's the key thing: '''if an element is disallowed, then it is by definition impossible to set attributes, styles or classes on it.'''
    99That'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!
    1010Given 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).
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy