-
Notifications
You must be signed in to change notification settings - Fork 49
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
documenthandler - Safari incorrectly parses certain numeric values so they disappear #1098
Comments
Hi @lina-sbk-gbg! I still can't reproduce. Can you provided the input you had in your JSON originally? |
OK, sorry - forgot to check in the mobile browser. Now I can see the error! |
Documentation of the issueIt seem like space as thousands separator causes the problem. The following setup in Admin UI: What's most surprising is that although Temporary work-aroundAs provided in the example above, using comma or dot as thousand separator seems to work this out. It is not a valid solution though, as thousands separator is locale-specific. In Swedish, for example, a space should be used instead. @lina-sbk-gbg |
Now I found out what's going on. And it's an interesting find. 🤯 @Hallbergs: ideas? |
Tried a proposed solution but it seems outdated, this didn't work: <meta name="format-detection" content="telephone=no"> |
I guess safari is trying to be smart and display some numbers as telephone-numbers... Seems like the proposed solution is <meta name="format-detection" content="telephone=no"> |
😆 |
Maybe a zero width joiner somewhere in the number? ( |
Saw that proposed solution. Would require some logic to get it right but it's doable. But it'd be good to disable this auto-detection in the entire solution, so I'd really like to find a way. |
Since the different types of links in the documenthandler are given a special look, I guess other links are filtered out during parsing. Maybe it is in the parser that Sweco built that you can recognize the link "<a href = \ "tel:..." and erase the link? |
I'm pretty certain by now that it is the iOS Safari thinks that these number sequences are phone numbers and creates a clickable link: Next, this A-tag is parsed by the parser (as you see in the screenshot above). This specific tag lacks any of the What's strange is that disabling it as by the documentation (the |
OK, I have a solution. Coming up in a commit. |
Nicely done! |
👌👏 Thanks! |
Some numerical values in documents in documenthandler disappear in the mobile if you use Safari as web browser. They appear as they should in desktop and in, for example, Chrome on the mobile.
One guess is that Safari is trying to reinterpret the numbers into something special, which results in them disappearing.
When we tried to google the problem, it feels closely related to safari interpreting numbers into clickable phone numbers.
We need to find a solution that allows text in the format 6 000 - 12 000, for example, to be displayed correctly in Safari as well.
The text was updated successfully, but these errors were encountered: