-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add support to test native spelling|grammar errors #30863
Comments
To expand on this… while implementing these features in Blink, we’ve found a few problems stopping us from reliably testing spelling/grammar errors with portable tests. Some of these are probably impl-specific:
But some are more fundamental:
|
What would be a simple fix for this? Perhaps a |
Hmm, checking what I said in problem 3, the specs only say that user agents “may” use the lang attribute to control the language that spell checking is done in, which I guess makes sense, as only the user really knows what language they’re typing in.
That could work, at least as a solution to problem 2, and it would eliminate the assumption that spell checking is automatic and continuous (html #spelling-and-grammar-checking, “user agent could offer on-demand checking, could perform continuous checking while the checking is enabled, or could use other interfaces”). |
@foolip, https://web-platform-tests.org/writing-tests/testdriver.html says:
Do you know how feasible it would be to extend this support to reftests? As for problem 3, guaranteeing that some text under test is a spelling or grammar error, we could probably design something similar to Chromium’s chrome.internals.setMarker(), which would be simpler and more flexible than something like magic language tags. Impls should then disable any real spelling/grammar language data while running tests. |
I haven't found an easy and consistent way to test if a browser is showing or not a spelling|grammar error marker in some editable content. Some browsers use lazy strategies in order to paint these error markers, so it's not possible to know if they have painted them or not in a test.
It'd be nice to have some way to do this, maybe some kind of API or anything like that, that could tell browsers to show them on demand.
The text was updated successfully, but these errors were encountered: