Why a search text is unusable, or undefined when it can be sent. Blank — checked on the
canonical form search() sends (normalizeText), so an ideographic space (U+3000), a
zero-width space alone, combining marks alone or a "¨" (NFKC: a space and U+0308) count as
blank too — is "search text must not be empty."; upstream answers an empty searchText with
HTTP 400 and runs a whitespace-only or invisible one as is, finding nothing. Otherwise the
textProblem rules on the text as typed: a lone surrogate, a control character or a
format character (but ZWNJ/ZWJ) is refused, quoted visibly (search text "a\u200bb" contains an invisible character (U+200B).), never sent.
Why a search text is unusable, or
undefinedwhen it can be sent. Blank — checked on the canonical formsearch()sends (normalizeText), so an ideographic space (U+3000), a zero-width space alone, combining marks alone or a "¨" (NFKC: a space and U+0308) count as blank too — is "search text must not be empty."; upstream answers an emptysearchTextwith HTTP 400 and runs a whitespace-only or invisible one as is, finding nothing. Otherwise the textProblem rules on the text as typed: a lone surrogate, a control character or a format character (but ZWNJ/ZWJ) is refused, quoted visibly (search text "a\u200bb" contains an invisible character (U+200B).), never sent.