Skip to content

Schema#removeDisallowedAttributes does not check all children of given element #4535

Closed
@oskarwrobel

Description

@oskarwrobel

When an element with children is passed to the Schema#removeDisallowedAttributes it may happen that some elements won't be cleared.

<parent>
  <$text foo="a">a</$text><$text foo="b">b</$text><$text foo="c">c</$text>
</parent>

When all attributes are disallowed in text for the parent element, then the last one won't be cleared.

<parent>
  ab<$text foo="c">c</$text>
</parent>

While removing attributes nodes are merged and this affects iterator.

Metadata

Metadata

Assignees

Labels

package:enginetype:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions