laptop and a wrench

Bogue

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.

Dernière publication: April 15, 2022 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000148351
EnvoiApril 7, 2022
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.23
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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/.

Étapes pour reproduire

ID de bogue: BUG-000148351

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement