Changes between Initial Version and Version 2 of Ticket #10006
- Timestamp:
- Jan 31, 2013, 12:42:35 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10006
-
Property
Status
changed from
new
toconfirmed
-
Property
Status
changed from
-
Ticket #10006 – Description
initial v2 3 3 Similar case: currently {{{<span>}}} is allowed because plugins like font, colorbutton allow styles which base on span elements. So when pasting e.g. {{{<span lang="pl">}}}, lang is filtered out, but {{{<span>}}} left. 4 4 5 In fact, span is a special case, because when it doesn't have any attrs/styles/classes it should be removed automatically. So, to simplify implementation we can make two fixes: 5 === Proposed fix: === 6 6 7 1. There should be a way to mark attrs/style/class as required. Element is marked by this rule as valid (element has to be valid, otherwise it will be filtered out) only if it has this required property. 8 2. After applying filter, spans without attributes should be removed. 7 There should be a way to mark attrs/style/class as required. Element is marked by this rule as valid (element has to be valid, otherwise it will be filtered out) only if it has this required property.