worker-dom
worker-dom copied to clipboard
Attribute names are lowercase
Hi,
I used a preact component in amp-script tag and I noticed that my inline SVG has viewBox attribute all lowercase after hydrating. It is allright in non-AMP page with the same component and preact.
<svg version="1.1" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<svg version="1.1" viewbox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
There are probably more case sensitive attributes (preserveAspectRatio). https://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute