worker-dom icon indicating copy to clipboard operation
worker-dom copied to clipboard

Attribute names are lowercase

Open matej-marcisovsky opened this issue 4 years ago • 1 comments

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">

matej-marcisovsky avatar Feb 11 '21 10:02 matej-marcisovsky

There are probably more case sensitive attributes (preserveAspectRatio). https://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute

matej-marcisovsky avatar Feb 11 '21 13:02 matej-marcisovsky