Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

Widget generates error in IE #28

Closed
royhermans opened this issue Jan 24, 2019 · 5 comments
Closed

Widget generates error in IE #28

royhermans opened this issue Jan 24, 2019 · 5 comments
Assignees

Comments

@royhermans
Copy link

Hi Andries,

A user reported an error generated by this widget. After some research it turns out that user is using Internet Explorer. Turns out to be the same issue as reported in issue #23 .

I have updated the widget and now I get a pop-up stating "Failed to sanitize text, please use an other browser
". Is this something that can or will be fixed for Internet Explorer? The problem does not occur in Edge, Chrome, etc.

If you want I can also upload a test project in which I am able to replicate the issue.

Thank you in advance!

Kind regards,

Roy Hermans

@diego-antonelli
Copy link
Contributor

Hi @royhermans can you please comment here your html content?

@diego-antonelli diego-antonelli self-assigned this Jan 24, 2019
@royhermans
Copy link
Author

royhermans commented Jan 25, 2019

Hi @diego-antonelli ,

I'm not sure what you want/how to do this, could you describe the steps to me? I can also add the test project so you can reproduce it yourself as well.

@diego-antonelli
Copy link
Contributor

Hi @royhermans, we are facing an issue with % inside URLs just in IE and Edge till version 16.

Cause: IE and Edge are expecting for URL Entities in elements. So for IE and Edge just % is wrong,
they are expecting %20 or another URL Entity. Chrome and Firefox just ignore single %.

Suggestion: What I can suggest for you is change the pattern of your replacedVar from {%varName%} to just {varName} and also in your configurations to replace, remove the %.

You can see more here: https://www.w3schools.com/tags/ref_urlencode.asp

@royhermans
Copy link
Author

Hi @diego-antonelli , I am not sure we are understanding eachother correctly. I am not using any %'s or even URL's.

I checked a bit more and managed to narrow it down a bit:
The error occurs when viewing the Rich Text Widget non-editable in a list-view.

screenshot_67

When you view the object on a page containing the non-editable Rich Text widget you do not get any errors.

screenshot_68

I have also uploaded the test project, just create a new object, enter some random text in the Rich Text Widget and save. The use the Overview Listview page to view the error in Internet Explorer.

RichTextIE_error.zip

I hope this clarifies things.

@Andries-Smit
Copy link
Contributor

This issue is resolved in version 1.3.3 and is now available trough the app store

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants