When using riot-viewBox inside an svg tag it is replaced by viewbox. #2086

Closed
jpeter06 opened this Issue Nov 23, 2016 · 7 comments

Projects

None yet

3 participants

@jpeter06
  1. Describe your issue:
    When using riot-viewBox inside an svg tag
    it is replaced by viewbox (B is in lowercase).

  2. Can you reproduce the issue?
    https://jsfiddle.net/jpeter06/nhfabqj7/

  3. On which browser/OS does the issue appear?
    Chrome, IE, ...

  4. Which version of Riot does it affect?
    3.0.0

  5. How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
@GianlucaGuarini
Member

@jpeter06 just avoid the riot prefix it should be fine https://jsfiddle.net/gianlucaguarini/cjcb3oyw/

@jpeter06

I was just trying to avoid the console error:
riot+compiler.min.js:2 Error: attribute viewBox: Expected number, "{viewBox}".

@GianlucaGuarini
Member

Ok this issue appears only on chrome, I think it should be really simple to solve

@GianlucaGuarini GianlucaGuarini added a commit that closed this issue Dec 4, 2016
@GianlucaGuarini GianlucaGuarini closes #2086 8ff4fda
@sntran
sntran commented Jan 3, 2017

This still throws an error in the console:

Error: <svg> attribute viewBox: Expected number, "{viewBox}".
@GianlucaGuarini
Member

@sntran i don't see any issue or error in the console browser + riot version?

@sntran
sntran commented Jan 9, 2017

I was referencing the error in this https://jsfiddle.net/gianlucaguarini/cjcb3oyw/.

I can take a screen shot if you want. I'm on Chrome 55.0.2883.95 (64-bit) on El Capitan.

@GianlucaGuarini
Member

You can use riot-viewbox https://jsfiddle.net/cjcb3oyw/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment