Closed JSnow11 closed 1 year ago
This issue proposes a bug
When trying to pass an initial-value (string) attribute to a custom element it gets trimmed, the whitespaces at the end of it are disappearing.
sanitizer("<qz-element initial-value='test ' ></qz-element>", { CUSTOM_ELEMENT_HANDLING: { tagNameCheck: /^/, attributeNameCheck: /^/, allowCustomizedBuiltInElements: true, }, })
<qz-element initial-value="test"></qz-element>
<qz-element initial-value="test "></qz-element>
ADD_DATA_URI_TAGS: ["qz-element"], ADD_URI_SAFE_ATTR: ["initial-value"],
Is there any config to prevent this?, I couldn't find any
Sadly no, no config option for this :)
Background & Context
When trying to pass an initial-value (string) attribute to a custom element it gets trimmed, the whitespaces at the end of it are disappearing.
Bug
Input
Given output
Expected output
I tried
Question
Is there any config to prevent this?, I couldn't find any