Fixed scour to handle entities in url references
This commit is contained in:
parent
a03439573e
commit
9375bd69a9
9 changed files with 1973 additions and 13 deletions
|
|
@ -537,6 +537,11 @@ class TranslateLongHexColorIntoShortHex(unittest.TestCase):
|
|||
self.assertEquals( elem.getAttribute('fill'), '#FFF',
|
||||
'Not converting long hex color into short hex')
|
||||
|
||||
class AllowQuotEntitiesInUrl(unittest.TestCase):
|
||||
def runTest(self):
|
||||
grads = scour.scourXmlFile('unittests/quot-in-url.svg').getElementsByTagNameNS(SVGNS, 'linearGradient')
|
||||
self.assertEquals( len(grads), 1,
|
||||
'Removed referenced gradient when " was in the url')
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue