v153 · spell check dictionary

The surface, probed

A small API: one attribute and two methods. What makes it worth probing carefully is that the attribute is specified to be absent — not null, not throwing — in a browser without spell checking, which turns the obvious feature test into the correct one.

Each part of the API

What this browser has
whatpresent?reads aswhy it is checked this way

The secure context requirement

Conditions the attribute depends on, measured here
conditionhereconsequence

A secure context is not only HTTPS: localhost counts, which is why this page can satisfy the requirement while being served over plain HTTP in development. If the attribute were missing on a page that is otherwise eligible, the secure-context row is the first place to look and it would say so.

Feature detection, done three ways

Three ways to ask the same question, and what each returns here
expressionresultverdict

see also