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.
No entanto, vejo que o atributo viewBox() é sempre renderizado em minúsculas.
A imagem SVG é gerada com todos os atributos definidos (), mas não é renderizada na página. O que estou perdendo?
Percebo que isso é fornecido pelo pacote virtual-dom, mas não consegui encontrar a solução lá.
@Bas Infelizmente, não tenho mais o mesmo código. Segui em frente e implementei o logo por meio de métodos diferentes.
Mas isto posso lhe dizer agora; se eu inspecionasse o navegador para a imagem SVG e editasse como HTML no navegador para renomear o atributo viewbox para viewBox, a imagem SVG seria renderizada corretamente no navegador.
E seria idêntica à imagem SVG original que eu desconstruí no helper h.