Skip to content

Commit

Permalink
Merge pull request #659 from christopherehlen/main
Browse files Browse the repository at this point in the history
Stop trimming value attributes
  • Loading branch information
cure53 committed Mar 7, 2022
2 parents 85f3f10 + 1c2cb7e commit 5c28248
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ bower_components
npm-debug.log
.vscode
yarn-error.log
nbproject/private/private.properties
nbproject/project.properties
nbproject/private/private.xml
2 changes: 1 addition & 1 deletion dist/purify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ function createDOMPurify(window = getGlobal()) {
while (l--) {
attr = attributes[l];
const { name, namespaceURI } = attr;
value = stringTrim(attr.value);
value = name === 'value' ? attr.value : stringTrim(attr.value);
lcName = transformCaseFunc(name);

/* Execute a hook if present */
Expand Down

0 comments on commit 5c28248

Please sign in to comment.