rrdelaney / jadelint

:dragon: A linter for the Jade templating language
https://rrdelaney.github.io/jadelint
MIT License
6 stars 1 forks source link

SVG use: No namespacing of attributes attribute allowed #18

Closed strarsis closed 8 years ago

strarsis commented 8 years ago

"No namespacing of attributes attribute allowed" http://rdel.io/jadelint/api/class/NoXMLAttributeNamespace.html

I add a SVG element in jade using

svg: use(xlink:href='/images/sprite.symbol.svg#test')

xlink:href is the proper approach for adding SVGs this way, so jadelint should make an exception here.

rrdelaney commented 8 years ago

I added an exception for things namespaced under xlink on the rule. Should reflect in v0.3.3 which I just pushed