laptop and a wrench

Error

When defining the 'content' property of a PopupTemplate in ArcGIS API for JavaScript 4.23 using HTML tags, the values of certain properties are missing when the popup elements are inspected in the developer tools.

Última publicación: April 15, 2022 ArcGIS API for JavaScript
Número de ID del error BUG-000148351
EnviadoApril 7, 2022
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.23
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

This occurs due to the HTML sanitizer sanitizing and escaping strings, according to the ArcGIS Online supported HTML specification: https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm. Formatting the HTML content within a function to set the PopupTemplate content fixes the problem. See the following code sample: https://codepen.io/laurenb14/pen/wvpELgw?editors=1000. Refer to this blog for more details on the HTML sanitizer: https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/using-html-with-popups-in-the-arcgis-api-for-javascript/.

Pasos para reproducir

ID del error: BUG-000148351

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga