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

Example de page où ça n’a pas marché #3

Open
Geobert opened this issue Jan 25, 2023 · 1 comment
Open

Example de page où ça n’a pas marché #3

Geobert opened this issue Jan 25, 2023 · 1 comment

Comments

@Geobert
Copy link

Geobert commented Jan 25, 2023

Merci pour cette extension !

J’ai trouvé un cas où ça ne marche pas bien :
https://main.elk.zone/mamot.fr/@casilli/109749219480303003

J’ai l’impression que ça fonctionne au moment où l’extension s’installe, mais plus du tout ensuite

@4nnm8
Copy link
Owner

4nnm8 commented Feb 14, 2023

Quand je télécharge la page en local, le script fonctionne systématiquement car le code source se présente ainsi :
<div class="status-body text-xl">[...]</span>

En revanche, en ligne, le site injecte ces attributs là :
<div class="status-body text-xl" whitespace-pre-wrap="" break-words="" relative="">[...]</span>

Ce qui a pour conséquence de donner au paragraphe ces attributs de style :

white-space: pre-wrap;
overflow-wrap: break-word;

Étrangement, quand j'applique les mêmes styles en local, ça fonctionne toujours. J'avoue que je sèche pour le moment. D'autant que j'ai actualisé la page en ligne plusieurs fois, et parfois le script passe et convertit bien l'écriture inclusive...

Peut être un problème dans la temporalité d'exécution de mon script (avant ou après l'application de white-space: pre-wrap; overflow-wrap: break-word; de façon dynamique).

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