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

Hyphenating the word "vereinfachen" (German) triggers iOS parental controls content blocker #44

Open
ynamite opened this issue Apr 2, 2019 · 2 comments

Comments

@ynamite
Copy link

ynamite commented Apr 2, 2019

Hi,

Firstly, thanks for the awesome library :)

I'm experiencing quite a peculiar issue concerning iOS Safari in relation to parental controls. If parental controls are active and set to limit adult web content, iOS Safari in some cases won't display a website that contains the hyphenated word "vereinfachen" (German for "simplify"). Instead it will show this:

grafik

This happens in iOS 12.1.4, if the option Settings -> Screen Time -> Content & Privacy Restrictions -> Content Restrictions -> Web Content is set to Limit Adult Websites and if some other (currently unknown) criteria is met.

I can easily reproduce this issue on the aforementioned website on different iPhone/iPad devices. I can just as easyily fix it by simply removing the word "vereinfachen" from the hyphenated string or by not using Hyphenator at all.
I haven't however been able to reproduce the issue in another environment where the HTML structure differs. The implication is that the surrounding HTML does seem to matter to an extent and that the issue may be somewhat exclusive to the website I'm working on. Not sure

Note it doesn't seem to matter if &shy; or <i></i>&shy; is used. Also the website in question does not contain any adult content in any shape or form. On the contrary, it's a website aimed at teenagers.

Any ideas as to what's going on here? I can supply an example page if that helps.

@heiglandreas
Copy link
Owner

Sorry for getting back to you so late.

But I have actually no clue what is happening there.... 😳

I will check whether I can reproduce that. Thanks for mentioning!

@ynamite
Copy link
Author

ynamite commented Jun 11, 2020

No worries, I imagine it'll be pretty challenging to debug, never mind reproduce.
I've since worked around it by simply using a different word with a similar connotation, as I just couldn't seem to fix it any other way.

It could just as well be a weird bug with the iOS Content Restriction policy rules.

If it helps I could try and reproduce it and share the link to the page in question in a PM. Let me know.

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

No branches or pull requests

2 participants