-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sanitizer does not normalize tagName or attribute #49
Comments
bantic
added a commit
that referenced
this issue
Mar 2, 2017
bantic
added a commit
that referenced
this issue
Mar 2, 2017
Add npm 'start' script, note in readme how to run tests in browser. Refactor tests to be more DRY (use mobiledoc creation helpers). Refactor renderers to share more helper functions. Refactor renderer shape to remove some conditionals (adds `#sectionElementRendererFor` and `#markupElementRendererFor`). fixes #49 fixes #48
bantic
added a commit
that referenced
this issue
Mar 6, 2017
Add npm 'start' script, note in readme how to run tests in browser. Refactor tests to be more DRY (use mobiledoc creation helpers). Refactor renderers to share more helper functions. Refactor renderer shape to remove some conditionals (adds `#sectionElementRendererFor` and `#markupElementRendererFor`). fixes #49 fixes #48
bantic
added a commit
that referenced
this issue
Mar 6, 2017
Add npm 'start' script, note in readme how to run tests in browser. Refactor tests to be more DRY (use mobiledoc creation helpers). Refactor renderers to share more helper functions. Refactor renderer shape to remove some conditionals (adds `#sectionElementRendererFor` and `#markupElementRendererFor`). fixes #49 fixes #48
bantic
added a commit
that referenced
this issue
Mar 6, 2017
…me and attributeName (#50) Add npm 'start' script, note in readme how to run tests in browser. Refactor tests to be more DRY (use mobiledoc creation helpers). Refactor renderers to share more helper functions. Refactor renderer shape to remove some conditionals (adds `#sectionElementRendererFor` and `#markupElementRendererFor`). fixes #49 fixes #48
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The existing sanitizer doesn't lower-case tagName and attributeName before comparing, so the following markup will be sanitized:
['a', ['href', 'javascript:evil']]
but these won't:['A', ['href', 'javascript:evil']]
and['a', ['HREF', 'javascript:evil']]
The text was updated successfully, but these errors were encountered: