Bas is experiencing issues with the Widget Helper stripping certain attributes when adding an <a> element with classes and attributes. The attributes id, href, and title work fine, but aria-label and _target do not.
In a related issue, gormus is having trouble rendering an SVG object using the h helper. The viewBox attribute is being rendered in all lowercase, causing the SVG image not to render. Although gormus was unable to provide the generated SVG code, they mention that editing the viewbox attribute to viewBox in the browser inspector resolves the issue.
Tuttavia, vedo che l’attributo viewBox() viene sempre renderizzato in minuscolo.
L’immagine SVG viene generata con tutti gli attributi definiti (), ma non viene renderizzata nella pagina. Cosa mi manca?
Mi rendo conto che questo è fornito dal pacchetto virtual-dom, ma non sono riuscito a trovare la soluzione lì.
@Bas Sfortunatamente, non ho più lo stesso codice. Sono andato avanti e ho implementato il logo con metodi diversi.
Ma questo posso dirtelo ora; se ispezionassi il browser per l’immagine SVG e modificassi come HTML nel browser per rinominare l’attributo viewbox in viewBox, l’immagine SVG verrebbe visualizzata correttamente nel browser.
E sarebbe identica all’immagine SVG originale che ho decostruito nell’helper h.