Binding viewBox attribute on svg does not seen to work.
Hmm, this is annoying because HTML parsing only preserves the camelCase for valid camelCase attributes, so v-bind:viewBox is converted to v-bind:viewbox before the directive can handle it.
Two things I'm considering:
.camel modifier so that you can do <svg :view-box.camel="xxx">. A bit indirect but is trivial to implement.Could svg attributes as a whole be ignored, would that be simpler?
I'll take the .camel over the whitelist.
@simplesmiler ok, it's already in the dev branch :)
thank you for post
Most helpful comment
Hmm, this is annoying because HTML parsing only preserves the camelCase for valid camelCase attributes, so
v-bind:viewBoxis converted tov-bind:viewboxbefore the directive can handle it.Two things I'm considering:
.camelmodifier so that you can do<svg :view-box.camel="xxx">. A bit indirect but is trivial to implement.