Skip to main content

WARN_VISIBLE_TEXT_TARGET_INTEGRITY_DEPRECATED

Warning Code: WARN_VISIBLE_TEXT_TARGET_INTEGRITY_DEPRECATED​

This warning is reported when the target of a Content Attestation includes the deprecated VisibleTextTargetIntegrity. It is not treated as a verification failure.

Warning Message​

Causes​

  • The target of the Content Attestation includes a Content Integrity Descriptor whose type is VisibleTextTargetIntegrity.
  • The rendering result obtained via innerText depends on the browser implementation and does not match across browsers, so it is not suitable as a basis for integrity verification.

Examples​

  • VisibleTextTargetIntegrity is set in the target of the Content Attestation.
{
"target": [
{
"type": "VisibleTextTargetIntegrity",
"cssSelector": "<CSS selector>",
"integrity": "sha256-GtNUUolQVlwIkQU9JknWkwkhfdiVmHr/BOnLFFHC5jI="
}
]
}

Resolution​