facebook

incorrect warnings for inline svg

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #587744 Reply

    Fedor Losev
    Participant

    For an inline svg there are Angular Template Problem “Unknown attribute ‘xxx'” warnings for every attribute

    #587961 Reply

    support-swapna
    Moderator

    Fedor,

    Sorry that you are seeing this issue.

    I could not replicate the validation error at my end.
    I installed ng-inline-svg to my Angular project, added the import { InlineSVGModule } from 'ng-inline-svg';to the app.module.ts file and placed this line <div [inlineSVG]="svg"></div> in the app.component.html file but do not see any validation errors reported for inlineSVG.

    Can you please share with us more details about how you are accessing the InlineSVG in the project to help us replicate the problem at our end? Please also share with us the screenshot of the editor to help us get a visual.

    –Swapna
    Genuitec Support

    #587969 Reply

    Fedor Losev
    Participant

    Hi, sorry for not being clear, it is not about module, it is about svg tag that is inline in html e.g.

    
    <!DOCTYPE html>
    <html>
    <body>
    
    <svg width="100" height="100">
      <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
    </svg>
    
    </body>
    </html>
    
    #587987 Reply

    support-swapna
    Moderator

    Fedor,

    Thank you for sharing the code snippet. I could replicate the issue at my end.
    A bug is filed for the dev team to work on it.

    Thank you once again for reporting it.

    –Swapna
    Genuitec Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: incorrect warnings for inline svg

You must be logged in to post in the forum log in