-
Notifications
You must be signed in to change notification settings - Fork 36
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
Exclude contact cards (and other non-editable blocks) from HIX #3281
base: develop
Are you sure you want to change the base?
Conversation
I fear that this might change the hix scores of pages again. The last time we did this our service team had quite a nightmare dealing with municipalities that suddenly could not translate their pages anymore because the hix score was too low. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a lot of context about this piece of code. I hope @david-venhoff knows more about it. For what I can see this piece of code looks good and the logic itself makes sense, but I might not think of all possible side effects :/
That's a very valid concern. I'm not sure how else to progress though, tbh. Maybe passing Removing the divs in question without parsing the HTML is an entirely differnet can of worms. Frankly I don't think we have a choice but to risk slightly changing HIX scores :( (With prior testing still, of course) |
51c3185
to
7c9d876
Compare
7c9d876
to
88d84e1
Compare
I think we need @osmers to chime in on this 😅 |
Short description
The contact cards introduced in #3169 have a severe negative impact on the HIX score. This PR excludes them from the HIX calculations.
Proposed changes
contenteditable="false"
.Side effects
html.text_content()
was previously only used to check for empty pages. For convenience, I have changed the code to send the result of this operation to textlab instead of the raw HTML - but I am uncertain if there has been a decision against this in the past when you added the code in question @david-venhoff - are my changes OK?Resolved issues
Fixes: #3268
Pull Request Review Guidelines