Re: [html-tests] Add tests for turning off spellchecking (#4608)

@mrego: I don't think we can actually write a test for that. We can write tests for cases where the markers should not be visible, but I don't think we can write tests for cases where they should be visible, because the spec allows the UA to decide if/when to show the markers:

> Even when checking is enabled, user agents may opt to not report spelling or grammar errors in text that the user agent deems the user has no interest in having checked

For the same reason, we also cannot write a reference file with the markers turned on, since the UA is allowed to arbitrarily decide not to turn them on.

When forceSpellCheck() will be implemented, this will be different, but for now it is not, so I don't think there is anything we can do.

Note that tests internal to a browser vendor could be different, as it is perfectly OK for an implementer to decide in which cases they want the markers on, but we cannot have these tests as specification tests.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4608#issuecomment-275310544

Received on Thursday, 26 January 2017 05:24:22 UTC