Getting domconverter-unsafe-attribute-detected while setting the renderUnsafeAttributes #11879
Labels
squad:core
Issue to be handled by the Core team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
attributeToElement
adding anonclick
attribute and bypassing security withrenderUnsafeAttributes: ['onclick']
This is the full implementation
✔️ Expected result
The onclick event should not be removed and the message
domconverter-unsafe-attribute-detected
should not appear on the console.❌ Actual result
The
domconverter-unsafe-attribute-detected
is shown on the console and the onclick attribute is removed from the DOM element.❓ Possible solution
I have no idea. I saw the test for this behavior and they seem to be correct.
📃 Other details
"@ckeditor/ckeditor5-angular": "^4.0.0",
"@ckeditor/ckeditor5-basic-styles": "^34.1.0",
"@ckeditor/ckeditor5-core": "^34.1.0",
"@ckeditor/ckeditor5-editor-classic": "^34.1.0",
"@ckeditor/ckeditor5-essentials": "^34.1.0",
"@ckeditor/ckeditor5-heading": "^34.1.0",
"@ckeditor/ckeditor5-image": "^34.1.0",
"@ckeditor/ckeditor5-inspector": "^4.1.0",
"@ckeditor/ckeditor5-link": "^34.1.0",
"@ckeditor/ckeditor5-list": "^34.1.0",
"@ckeditor/ckeditor5-paragraph": "^34.1.0",
"@ckeditor/ckeditor5-remove-format": "^34.1.0",
"@ckeditor/ckeditor5-special-characters": "^34.1.0",
"@ckeditor/ckeditor5-table": "^34.1.0",
"@ckeditor/ckeditor5-theme-lark": "^34.1.0",
"@ckeditor/ckeditor5-ui": "^34.1.0",
"@ckeditor/ckeditor5-upload": "^34.1.0",
"@ckeditor/ckeditor5-utils": "^34.1.0",
"@ckeditor/ckeditor5-widget": "^34.1.0",
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: