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
- "[OP Warning] VisibleTextTargetIntegrity is deprecated in Content Attestation and will be removed after October 2027. innerText-based rendering is platform-dependent and incompatible across browser implementations and cannot serve as a basis for integrity verification. See: https://docs.originator-profile.org/opb/content-integrity-descriptor/visible-text/"
Causes
- The
targetof the Content Attestation includes a Content Integrity Descriptor whosetypeisVisibleTextTargetIntegrity. - The rendering result obtained via
innerTextdepends on the browser implementation and does not match across browsers, so it is not suitable as a basis for integrity verification.
Examples
VisibleTextTargetIntegrityis set in thetargetof the Content Attestation.
{
"target": [
{
"type": "VisibleTextTargetIntegrity",
"cssSelector": "<CSS selector>",
"integrity": "sha256-GtNUUolQVlwIkQU9JknWkwkhfdiVmHr/BOnLFFHC5jI="
}
]
}
Resolution
- Avoid using
VisibleTextTargetIntegrity. Consider using TextTargetIntegrity or ExternalResourceTargetIntegrity instead. Additional details can be found in Visible Text within DOM Integrity.