Skip to content
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

Removed Character Sanitization When Searching #879

Closed
wants to merge 53 commits into from

Conversation

isaac-mercieca
Copy link

Description

Disabled character sanitization when searching as this was encoding characters (&,<,>"), which was resulting in options not being retrieved.

Screenshots (if appropriate)

Types of changes

  • Chore (tooling change or documentation change)
  • Refactor (non-breaking change which maintains existing functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Joshua Crewe and others added 30 commits April 7, 2020 14:22
Disabled character sanitization when searching as this was encoding characters (&,<,>"), which was resulting in options not being retrieved.
After trying to see the demo for this project I noticed that the link
leads to a 404 page.

I found the updated link in [Choices-js#957] and this commit updates the README to
link to the proper URL.

[Choices-js#957]: Choices-js#957
Fix broken demo link in README.md
…ompatibility, switch IE to Edge for browser testing (IE web driver no longer pre-installed on runner)
… dependencies - replace deprecated eslint-loader
…ave Puppeteer diff image even if pixelmatch throws error, update Chrome snapshot
Update dependencies, refactor to remove dependency cycles, fix GitHub Action workflows
* Update README.md

* Update README.md

Switch to the Choices-js organization link.

Co-authored-by: Matt Triff <[email protected]>
…ces-js#976)

* replace / by *

* replace / by *

* add leading zero

* add leading zero
* Documentation of input type terms

Add a table with documentation of HTML5 input tag correspondence to terms used in Choices documentation

* Update README.md

Clean up typos, simplify table and use MDN for reference links

Co-authored-by: Matt Triff <[email protected]>
De-emphasize call for maintainers.
Switch to dart-sass, fix npm audit issues, add stylelint
HTML uses `&gt;` to encode `>` characters.
* Enhance inputCloned text input with type and name

Safari will display a contact autocomplete on every text input which `name` attribute contains "*name*" or does not have any `name` attribute.
Adding a fine tuned `name`attribute to the input should prevent that.

Plus, input type="search" seems more suited to the field intent (https://developer.mozilla.org/fr/docs/Web/HTML/Element/Input/search).

* Adapt inputCloned related test
mason-rogers and others added 23 commits December 23, 2021 16:59
feat: Introduce allowHTML option to allow people to disable injecting HTML into choices.
Disabled character sanitization when searching as this was encoding characters (&,<,>"), which was resulting in options not being retrieved.
@mtriff
Copy link
Member

mtriff commented Dec 31, 2021

Thanks for this! Looks like I made a mess of your branch when I added some changes (sorry). I'll merge this under #990 instead.

@mtriff mtriff closed this Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants