hint icon indicating copy to clipboard operation
hint copied to clipboard

docs: fix case-sensitivity explanation in highest-available-document-mode

Open rajucreate opened this issue 3 weeks ago • 1 comments

Pull request checklist

Make sure you:

For non-trivial changes, please make sure you also:

  • [x] Added/Updated related documentation.
  • [ ] Added/Updated related tests.

Short description of the change(s)

This PR improves the behavior of the highest-available-document-mode hint by fixing an incorrect case-sensitive match for the X-UA-Compatible header.

What was the issue?

The existing implementation compared the header value using a case-sensitive check, which caused valid values such as: X-UA-Compatible: IE=edge to incorrectly trigger warnings.

What does this PR do?

i) Introduces a proper case-insensitive normalization for header values ii) Ensures all variants like IE=edge, Ie=EdGe, or ie=edge pass correctly iii)Removes outdated note in documentation about case-sensitive limitations iv) Updates README with clear explanation of new case-insensitive behavior

This improves correctness and aligns with Microsoft’s specification that the header is case-insensitive.

Issue reference

Fixes: #6028

Additional notes

-> No major logic changes beyond normalization. -> Existing test suite may not require updates unless tests expect strictly lowercase matches.

rajucreate avatar Nov 25 '25 14:11 rajucreate

CLA Signed
The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: rajucreate / name: rajucreate (8be06e046778bf2e73627699ea4586122f5dbc11, d2a0b67a863b0f8f7878ba0f929bcc524f387d23)